Get Cart Subtotal with Currency Sign in Magento

 

Step1: Get Subtotal with currency Symbol:

<?php 
 $totals = Mage::getSingleton('checkout/session')->getQuote()->getTotals(); //Total object
 $grandtotal = round($totals["grand_total"]->getValue()); //Grandtotal value 
 echo $formattedPrice = Mage::helper('core')->currency($grandtotal , true, false);
?>

 

Step2: Get Subtotal without currency Symbol:

<?php echo Mage::helper('checkout/cart')->getQuote()->getSubtotal() ?>

Leave a Reply

Your email address will not be published. Required fields are marked *