Wednesday, October 21, 2015

Magento: Get tax value

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

Magento: Get Grandtotal without Tax

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

Magento: Get Subtotal without Tax

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