Pregunta

            $order = Mage::getSingleton('sales/order');
            $order->loadByIncrementId($orderId);
            $order_status = Mage_Sales_Model_Order::STATE_PROCESSING;
            if($configured_order_status == 'pending') {
               $order_status = Mage_Sales_Model_Order::STATE_PENDING_PAYMENT;
            }
            $order->setState($order_status, true, $comment);

            $order->sendNewOrderEmail();
            $order->setEmailSent(true);

            $order->save();

This is a part of the code from PaymentController.php. In the admin page after payment is done, total due > 0 while total paid = 0. Please tell me what function am I missing. I couldn't find satisfactory answer in similar type of questions, so re-asking it.

enter image description here

¿Fue útil?

Solución

You need to goto sales->order->select an order. Then click on invoice button and then on submit invoice. This will do... :)

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top