How can I get grand total in custom phtml file
-
20-02-2021 - |
質問
- Platform: Magento 1.9
- Area: Cart/Quote
I want to get cart grandtotal in my custom phtml file.
Is there any easy way to do it?
解決
Simple code to fetch grand total anywhere in theme:
$grandTotal = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
所属していません magento.stackexchange