*/ class Mage_Tax_Block_Checkout_Grandtotal extends Mage_Checkout_Block_Total_Default { protected $_template = 'tax/checkout/grandtotal.phtml'; /** * Check if we have include tax amount between grandtotal incl/excl tax * * @return bool */ public function includeTax() { if ($this->getTotal()->getAddress()->getGrandTotal()) { return Mage::getSingleton('tax/config')->displayCartTaxWithGrandTotal($this->getStore()); } return false; } /** * Get grandtotal exclude tax * * @return float */ public function getTotalExclTax() { $excl = $this->getTotal()->getAddress()->getGrandTotal()-$this->getTotal()->getAddress()->getTaxAmount(); $excl = max($excl, 0); return $excl; } }