Domanda

How to get order total amount in my custom file ?

È stato utile?

Soluzione

try Following way...

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

$order->getGrandTotal();

Altri suggerimenti

Basically we get order total amount like this :

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

$order->getGrandTotal();
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange
scroll top