Showing posts with label How to get cart grand total in Magento. Show all posts
Showing posts with label How to get cart grand total in Magento. Show all posts

Thursday, 18 September 2014

Get the grand total in Magento shopping cart


Get the grand total in Magento shopping cart

<?php
    $quote = Mage::getModel('checkout/session')->getQuote();
    $quoteData= $quote->getData();
    echo $grandTotal=$quoteData['grand_total'];
?>

OR

<?php echo Mage::helper('checkout')->formatPrice(Mage::getSingleton('checkout/session')->getQuote()->getgrandTotal(),2); ?>