- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
Magento. How to remove discount field from the cart page
February 3, 2016
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:
The first way is to edit checkout.xml file.
-
Log into your Control Hosting Panel (cPanel) on your server.
-
Locate your File Manager and go to your website folder (you can perform the next steps via your FTP as well).
-
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:
-
Once you open checkout.xml file, you will need to locate the following line of code (approximately line 88):
-
Remove or comment this line of code and save your changes:
-
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.
-
Navigate to app/design/frontend/your_theme/template/checkout and open cart.phtml file:
-
Locate the following line of code in this file (approximately line 163):
getChildHtml('coupon') ?>
-
Remove or comment this line of code and save your changes:
-
Clear the cache and refresh your website to see the changes.
The third way is to edit local.xml file.
-
Navigate to app/design/frontend/your_theme/layout and open local.xml file:
-
Add the following piece of code to the bottom of this file right before the tag:
-
Save your changes:
-
Clear the cache and refresh your website to see the changes:
Now you know how to remove discount field from the cart page in Magento.
Feel free to check the detailed video tutorial below: