How to remove apply discount code from cart page in magento 2

Sometimes you may want to remove the apply discount code from the cart page and it’s quite easy. Since magento itself recommends the xml way to remove an element or block, so we will follow the same.

Edit this file,


and enter below piece of code

<?xml version="1.0"?>
<page layout="1column" xmlns:xsi=""
        <referenceContainer name="" remove="true"/>

Refresh the cache and reload the page. You have successfully removed the discount block from the cart page.

About the Author: magechamp

Leave a Reply

Your email address will not be published. Required fields are marked *