Wednesday, October 21, 2015

Magento: Get Subtotal without Tax

$totals = Mage::getSingleton('checkout/session')->getQuote()->getTotals(); //Total object
$subtotal = $totals["subtotal"]->getValue(); //Subtotal value

No comments:

Post a Comment