Question

How to get order total amount in my custom file ?

Était-ce utile?

La solution

try Following way...

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

$order->getGrandTotal();

Autres conseils

Basically we get order total amount like this :

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

$order->getGrandTotal();
Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top