Knowledgebase

How to remove the block "Estimate Shipping and Tax" from the shopping cart page in Magento

On the shopping cart page there's a panel labeled Estimate Shipping and Tax. It can be used by customers to calculated the tax and shipping based on the country (and state/province) selected from the drop-down menus in the block. If for some reason you want to hide that block from being displayed on the cart page, you can do it with a minor code modification.

One way to do this is to edit the checkout.xml file of your theme. If, for example, you use the base theme that comes prepackaged with Magento and the application is installed directly in the public_html folder on your Magento hosting account, the path to the file will be public_html/app/design/frontend/base/default/layout/checkout.xml. In the file find and comment out the following code:

<block type="checkout/cart_shipping" name="checkout.cart.shipping" as="shipping" 
template="checkout/cart/shipping.phtml"/>

To comment it out put an exclamation mark and two hyphens after the first bracket (e.g. <!--block) and two hyphens before the last bracket (e.g. /-->).

To modify the file download it on your local computer with an FTP client, edit it with a text editor (e.g. Notepad, Wordpad) and upload it back overwriting the old file.

Was this answer helpful?

 Print this Article

Also Read