Magento: hide tax summary from cart/checkout

Magento displays tax summary in cart and checkout by default:

cart

You may not always want this to show and there is a simple method of hiding the tax section in cart by making the following changes:

– go to /app/design/frontend/base/default/template/tax/checkout/tax.phtml
– copy this template file to your theme folder eg. /app/design/frontend/default/customtheme/template/tax/checkout/tax.phtml
– uncomment the following code in the newly copied template file (line 47 in base template file):

<td class="a-right" style="<?php echo $_style ?>" colspan="<?php echo $this->getColspan(); ?>">
<?php echo $this->escapeHtml($rate['title']); ?>
<?php if (!is_null($rate['percent'])): ?>
(<?php echo (float)$rate['percent']; ?>%)
<?php endif; ?>
<br />
</td>
<?php if ($isFirst): ?>
<td style="<?php echo $_style ?>" class="a-right" rowspan="<?php echo count($rates); ?>">
<?php echo $this->helper('checkout')->formatPrice($amount); ?>
</td>
<?php endif; ?>

Your commented code should look like this:
taxremove

Clear cache and place a test order. Tax details won’t show in cart but they will show in your order confirmation.

Michael Savin

My name is Michael Savin. I've been contributing to the Internet for over ten years and have been a London based Magento freelancer for the last six.

I build eCommerce websites for varied companies worldwide and enjoy a close relationship with many brands, freelancers and studios. Work aside I enjoy cycling, reading and long walks in sunny days.

2 Comments

  1. Agh!! Wonder what the % or number of guest we have lost due to this!

  2. gkastri says:

    great ! but what must we edit when we use a onecheckout module , to hide the tax

Leave a Reply

Your email address will not be published. Required fields are marked *