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); ?>

No comments: