If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

Magento. How to remove discount field from the cart page

This tutorial provides an explanation of how to remove discount field from the cart page in Magento.

Magento. How to remove discount field from the cart page

There are several ways to remove discount field from the cart page. Let’s review some of them:

magento_how_to_delete_discount_field_from_the_cart_page_1

The first way is to edit checkout.xml file.

  1. Log into your Control Hosting Panel (cPanel) on your server.

  2. Locate your File Manager and go to your website folder (you can perform the next steps via your FTP as well).

  3. Navigate to app/design/frontend/your_theme/layout and open checkout.xml file. If there is no such file, copy it from app/design/frontend/base/default/layout directory to your theme folder:

    magento_how_to_delete_discount_field_from_the_cart_page_2

  4. Once you open checkout.xml file, you will need to locate the following line of code (approximately line 88):

    			<block type="checkout/cart_coupon" name="checkout.cart.coupon" as="coupon" template="checkout/cart/coupon.phtml"/>
    		
  5. Remove or comment this line of code and save your changes:

    magento_how_to_delete_discount_field_from_the_cart_page_3

  6. Clear the cache and refresh your website to see the changes.
    You can refer to this tutorial to know how to clear the cache in Magento: How to clear Magento cache.

The second way is to edit cart.phtml file.

  1. Navigate to app/design/frontend/your_theme/template/checkout and open cart.phtml file:

    magento_how_to_delete_discount_field_from_the_cart_page_4

  2. Locate the following line of code in this file (approximately line 163):

    			<?php echo $this->getChildHtml('coupon') ?>
    		
  3. Remove or comment this line of code and save your changes:

    magento_how_to_delete_discount_field_from_the_cart_page_5

  4. Clear the cache and refresh your website to see the changes.

The third way is to edit local.xml file.

  1. Navigate to app/design/frontend/your_theme/layout and open local.xml file:

    magento_how_to_delete_discount_field_from_the_cart_page_6

  2. Add the following piece of code to the bottom of this file right before the </layout> tag:

    			<checkout_cart_index>
    			<reference name="checkout.cart">
    			<remove name="checkout.cart.coupon"/>
    			</reference>
    			</checkout_cart_index>
    		
  3. Save your changes:

    magento_how_to_delete_discount_field_from_the_cart_page_7

  4. Clear the cache and refresh your website to see the changes:

    magento_how_to_delete_discount_field_from_the_cart_page_8

Now you know how to remove discount field from the cart page in Magento.

Feel free to check the detailed video tutorial below:

Magento. How to remove discount field from the cart page