Use the below code to subtotal and grand total of cart in Magento
$sub_total = Mage::getModel('checkout/cart')->getQuote()->getSubtotal(); $grand_total = Mage::getModel('checkout/cart')->getQuote()->getGrandTotal();
Cheers!
Amjath
Use the below code to subtotal and grand total of cart in Magento
$sub_total = Mage::getModel('checkout/cart')->getQuote()->getSubtotal(); $grand_total = Mage::getModel('checkout/cart')->getQuote()->getGrandTotal();
Cheers!
Amjath
One comment on “Get subtotal and grand total in Magento”
Thanks a lot I was looking for this for at least one hour!