How can I get grand total in custom phtml file
-
20-02-2021 - |
Pregunta
- 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?
Solución
Simple code to fetch grand total anywhere in theme:
$grandTotal = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();
Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange