Magento – Remove tax from grand total grand-totaltaxtotals I need to remove tax from grand total in Magento. Means I want only show Tax but not add grand total Best Answer you can managed this settign from admin Go to admin>System>Configuration>Sales>Tax>Shopping Cart Display Settings make Display Subtotal=Excluding Tax enter image description here you can managed tax display setting on cart page,from here : admin>System>Configuration>Sales>Tax>Shopping Cart Display Setting =================================================================== How to do this (programatically).... Under {magento_base}/app/design/frontend/base/default/template/tax/checkout/ Edit file grandtotal.phtml (I suggest you make a backup of the file just in case). Find the line: <?php if ($this->includeTax() && $this->getTotalExclTax()>=0):?> Delete the subsequent lines: <tr> <td style="<?php echo $this->getStyle() ?>" class="a-right" colspan="<?php echo $this->getColspan(); ?>"> <strong><?php echo $this->helper('tax')->__('Grand Total Excl. Tax')?></strong> </td> <td style="<?php echo $this->getStyle() ?>" class="a-right"> <strong><?php echo $this->helper('checkout')->formatPrice($this->getTotalExclTax()) ?></strong> </td> </tr> This change means it will now only show the tax inclusive line in the cart review. Related SolutionsMagento 1.8 – How to Exclude Shipping Tax in Grand Total usually we do in the following way do a local ovveride of app/code/core/Mage/Checkout/Block/Cart/Totals.php and look for the function public function renderTotal($total, $area = null, $colspan = 1) { $code = $total->getCode(); if ($total->getAs()) { $code = $total->getAs(); } if($code == 'code_to_skip') return(''); //does not rendere the unwanted total row return $this->_getTotalRenderer($code) ->setTotal($total) ->setColspan($colspan) ->setRenderingArea(is_null($area) ? -1 : $area) ->toHtml(); } this is the function that renders the totals to html check the $code by logging them and skip the unwanted one hope this help Cart Tax – Calculate Grand Total Without Tax This will get you your carts subtotal: Mage::getModel('checkout/cart')->getQuote()->getSubtotal(); This will get your your carts grand total: Mage::helper('checkout')->formatPrice(Mage::getModel('checkout/cart')->getQuote()->getGrandTotal()); Related TopicMagento – Magento 1.9.2.2 – Grand Total less than Subtotal
Best Answer
you can managed this settign from admin
Go to
admin>System>Configuration>Sales>Tax>Shopping Cart Display Settings
make
Display Subtotal=Excluding Tax
enter image description here
you can managed tax display setting on cart page,from here :
admin>System>Configuration>Sales>Tax>Shopping Cart Display Setting
=================================================================== How to do this (programatically)....
Under
{magento_base}/app/design/frontend/base/default/template/tax/checkout/
Edit file
grandtotal.phtml
(I suggest you make a backup of the file just in case).Find the line:
Delete the subsequent lines:
This change means it will now only show the tax inclusive line in the cart review.