Pergunta

How to get order total amount in my custom file ?

Foi útil?

Solução

try Following way...

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

$order->getGrandTotal();

Outras dicas

Basically we get order total amount like this :

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

$order->getGrandTotal();
Licenciado em: CC-BY-SA com atribuição
Não afiliado a magento.stackexchange
scroll top