How to Remove Estimate Shipping Box From Cart Page In A Magento template

Estimate shipping box is a nifty Magento feature which allows your customers to estimate the shipping cost involved in different shipping options. A large scale Magento store shipping to remote & distant areas needs this functionality for sure. I remember those Xcart and Zencart days when we have to make this feature for few customers (back then there wasn’t a module for this). Fortunately, Magento comes powered with estimate shipping box in community and enterprise editions.

How To Get Rid of Estimate Shipping Box

Estimate shipping box is pretty cool, but what about stores mostly selling digital downloads or something which doesn’t really require shipping. So, this cool functionality is of no use. For this you need to sacrifice core Magento functionality. Should you need to remove the estimate shipping box from cart page in your Magento template? Simply follow the instructions given below

Just go to app/design/frontend/default/Your_Theme/template/checkout/cart.phtml and and find the following line of code

1
<?php if (!$this->getIsVirtual()): echo $this->getChildHtml('shipping'); endif; ?>

Replace the above line with the following piece of code

1
2
3
<?php if (!$this->getIsVirtual()):
//echo $this->getChildHtml('shipping');
endif; ?>

I hope this will help you customize, hide the estimate shipping box from your cart page. Please leave us a comment and let us know if this doesn’t work for you.

  • Charlotte

    Thanks, it works in v1.8. But, the downfall is that the remaining parts/blocks, discount codes and total amount, move to the left, where “estimate shipping box” was located. But, I would like these blocks to remain on the rights side of the cart page. How do you manage that?

    And, how do you manage to remove/comment out the discount codes and total amount blocks, so you only the “proceed to checkout” button remains?