Pregunta

How to get order total amount in my custom file ?

¿Fue útil?

Solución

try Following way...

$order = Mage::getSingleton('sales/order')->loadByIncrementId($orderId);

$order->getGrandTotal();

Otros consejos

Basically we get order total amount like this :

$order = Mage::getModel("sales/order")->loadByIncrementId($orderId); // get order

$order->getGrandTotal();
Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange
scroll top