5/05/2012

Magento: Hide Tax from Grand Total in Customer Shopping Cart

If you want to hide tax from checkout/cart page, try the following:

Go to:

\app\design\frontend\[base]\[default]\template\checkout\cart\totals.phtml

Find the line (about 41):
<?php echo $this->renderTotals(); ?>
and replace with this:
<?php
      $rendertot = $this->renderTotals();
      $rendertot_tr = explode('</tr>', $rendertot);
          
      foreach($rendertot_tr as $trkey => $trval) {
         if( strpos($trval, __('Tax')) ) {
             unset($rendertot_tr[$trkey]);
         }
      }
      $rendertot_tr = implode('</tr>', $rendertot_tr);
      echo $rendertot_tr;
?>
It will remove tax row from cart page.
Note: Replace [base] with your current Package name and [default] with your theme name.

No comments:

Post a Comment