Hello Magento Friends ?,

Today I will illustrate How to Remove Apply Discount Code From Checkout Payment Page in Magento 2. Let’s check out our previous blog, Magento 2: How to Add Custom Sidebar On Checkout Page. So, let’s start on ?

Beginning:

Discounts and offers are provided to the products and services in order to attract customers towards the store. The customers are likely to purchase more when they find any discounts. Besides, visitors can be easily converted into customers with the help of it.

But discounts are applied to the products or services for a specific period of time. After that, the store owner needs to remove or disable the discount code from the product payment page. Also, when the discount is applied only for a particular group of customers, the product payment page of other customer groups must not show the discount code.

Hence, let us find out the way to fulfill the above necessity.

Methods to Remove Apply Discount Code From Checkout Payment Page in Magento 2:

Remove Apply Discount Code From Checkout Payment Page in Magento 2 involves two methods to implement it.

Method 1: Using the CSS file

Enter the below code in your custom CSS file.

Method 2: Using the XML file

Move to the following path

app/design/frontend/VENDOR/THEME/Magento_Checkout/layout/checkout_index_index.xml

And enter the below code

Now run the below commands to view the effect

Ending:

Therefore, now everyone is able to Remove Apply Discount Code From Checkout Payment Page in Magento 2. While implementing the code, if you come across any difficulty notify me in the comment section below. Share the article with your Magento Developer buddies. Stay in the know for more such solutions.

Happy Coding ?

Click to rate this post!
[Total: 9 Average: 5]