سؤال

How to get order total amount in my custom file ?

هل كانت مفيدة؟

المحلول

try Following way...

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

$order->getGrandTotal();

نصائح أخرى

Basically we get order total amount like this :

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

$order->getGrandTotal();
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top