Removing Discount codes and estimate shipping and tax from the Magento shopping cart page

Magento webshops come with a lot of great functionality, but sometimes it is just a little too much and you want to get rid of some of the functions. Most of them can be turned off via the admin panel, but sometimes you have to do get into the code.

Many of our customers do not want to have the ‘Discount codes’ and/or ‘Estimate shipping’ boxes on the shopping cart page. Unfortunately there is no control in the admin. But this is how you can remove them.
removing discount coupon box

  • Via ftp download this file: http://www.yourshop.com/app/design/frontend/default/[yourtheme]/template/checkout/cart.phtml
  • Make a backup of this file, in case you screw-up :-)
  • Using a HTML editor, open the cart.phtml and look for lines looking like this:
    getChildHtml(‘coupon’)
    This statement calls the ‘Discount’ box.
  • A couple of lines later you will find this statement:
    getChildHtml(’shipping’)
    Both statements are typically ’surrounded’ by DIV tags. You should also remove these (make sure you delete the right ones.
  • Upload your new file, and refresh the page (sometimes you have to empty cache too to see the change!)

    Hope this helps!

    If you need any help on this post, or are looking for an experienced Magento partner, feel free to contact us!

    ~ by emilekoolstra on August 25, 2009.

    Leave a Reply