Steps to Remove Apply Discount Code From Checkout Payment Page in Magento 2 (2024)

Dhiren Vasoya 0

1

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 ?

Contents

  • 1 Beginning:
  • 2 Methods to Remove Apply Discount Code From Checkout Payment Page in Magento 2:
  • 3 Ending:

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.

1

2

3

4

.checkout-index-index .payment-option._collapsible.opc-payment-additional.discount-code

{

display: none;

}

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

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

<body>

<referenceBlock name="checkout.root">

<arguments>

<argument name="jsLayout" xsi:type="array">

<item name="components" xsi:type="array">

<item name="checkout" xsi:type="array">

<item name="children" xsi:type="array">

<item name="steps" xsi:type="array">

<item name="children" xsi:type="array">

<item name="billing-step" xsi:type="array">

<item name="children" xsi:type="array">

<item name="payment" xsi:type="array">

<item name="children" xsi:type="array">

<item name="afterMethods" xsi:type="array">

<item name="children" xsi:type="array">

<item name="discount" xsi:type="array">

<item name="config" xsi:type="array">

<item name="componentDisabled" xsi:type="boolean">true</item>

</item>

</item>

</item>

</item>

</item>

</item>

</item>

</item>

</item>

</item>

</item>

</item>

</item>

</argument>

</arguments>

</referenceBlock>

</body>

Now run the below commands to view the effect

1

2

php bin/magento cache:clean

php bin/magento cache:flush

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]

Dhiren Vasoya

Dhiren Vasoya is a Director and Co-founder at MageComp, Passionate ?️ Certified Magento Developer?‍?. He has more than 9 years of experience in Magento Development and completed 850+ projects to solve the most important E-commerce challenges. He is fond❤️ of coding and if he is not busy developing then you can find him at the cricket ground, hitting boundaries.?

How to Disable MSI in Magento 2?

Steps to Remove Apply Discount Code From Checkout Payment Page in Magento 2 (2)

Guide to Configure WYSIWYG Editor in Magento 2 (Updated 2024)

Steps to Remove Apply Discount Code From Checkout Payment Page in Magento 2 (3)

One Comment

  1. Steps to Remove Apply Discount Code From Checkout Payment Page in Magento 2 (4)

    Mahesh on February 2, 2021

    true

    Your file is missing some thing please update above code

    Reply

Leave a Reply

Steps to Remove Apply Discount Code From Checkout Payment Page in Magento 2 (2024)

FAQs

How to remove apply discount code in Magento 2? ›

Following are the two methods to get this done.
  1. Method 1: Using the CSS File. Enter the following code in your custom CSS file. ...
  2. Method 2: Using the XML File. ...
  3. Final Thoughts on Removing Apply Discount Code from Checkout in Magento 2.
May 9, 2024

How do I remove discount code from Shopify checkout? ›

From the Shopify app, tap the … button, and then tap Discounts. On the Discounts page, tap the discount that you want to delete. Tap Delete discount.

How do I remove tax from Magento 2 checkout? ›

Go, Stores > (under Taxes) > Tax zones and rates > click your tax options > then put the Rate percentage to 0. Also don't forget to Clear your cache, Remove the products form card, go back to homepage, add product again, go to checkout and see. This should remove the tax completely from the checkout.

How do I remove a discount? ›

Step 1: Convert the discount percentage into a decimal by dividing by 100. Step 2: Multiply the list price by the decimal to get the discount. Step 3: Subtract the discount from the list price to get the value of selling price.

How to apply discount code in Magento 2? ›

Steps on How to Auto Apply Magento 2 Coupon Code
  1. Configure the Coupon Code Link Extension. You will require the Coupon Code Link extension to auto-apply the coupon code on the checkout page. ...
  2. Create Coupon Code Links in Magento 2. ...
  3. Use Links to Auto Apply Coupon Code. ...
  4. Apply Coupon Code Automatically in Magento 2.

How to optimize checkout page Magento 2? ›

Design your site to be responsive for mobile and optimize performance by lazy loading content, minimizing page file size, using HTTP/2, avoiding JavaScript bundling, and optimizing for the first byte. Use third-party Magento extensions to create a faster one-page checkout process with less hassle.

How to add custom attribute in checkout page Magento 2? ›

Magento add custom field to order process consists of the following steps:
  1. Go to Stores > Configuration > Amasty Extensions > Order Attributes to configure the general settings.
  2. Then navigate to Sales > Manage Order Attributes. ...
  3. In the Default Label field, define the attribute label that will be shown on the frontend:

How do I remove promo code finder? ›

(at the top right corner of Google Chrome), select "More tools" and click "Extensions". Locate "Coupon Search" and other recently-installed suspicious browser add-ons, and remove them.

How do I remove the postal code from Shopify checkout? ›

Unfortunately, Shopify does not allow removing all those fields from the checkout page in their standard plans. The checkout is locked down to ensure it meets requirements for processing payments securely. Only Shopify Plus merchants paying $2000+ per month can fully customize the checkout.

How do I remove tax from Square? ›

From Square Dashboard
  1. Sign in to your Square Dashboard and select Account & Settings > Business information > Sales taxes.
  2. Under Sales taxes, select the tax you want to disable or delete.
  3. Select the Actions drop-down menu and select Disable tax or Delete tax.

How to remove shipping method from checkout in Magento 2? ›

To disable any shipping method like flat rate: Goto Admin > Store > Configuration > Click on Shipping methods under Sales tab, it will show you all methods. Here you can disabled any method by setting "Enabled" option to No and click save config button.

How do I disable TFA in Magento 2? ›

Disable 2FA
  1. To disable 2FA, visit Admin > Stores > Settings > Configuration > Security > 2FA and set Enable 2FA to No.
  2. To disable 2FA for API Token Generation, visit Admin > Stores > Settings > Configuration > Security > 2FA and set Enable 2FA for API Token Generation to No.

How to remove store code from URL Magento 2? ›

Default Store Code Remover for Magento 2
  1. composer require customgento/module-default-store-code-remover-m2.
  2. bin/magento module:enable CustomGento_DefaultStoreCodeRemover.
  3. bin/magento setup:upgrade.
  4. bin/magento cache:flush.
  5. bin/magento setup:di:compile.

Top Articles
How long can you store yeast?  - Market Basket
Why is Acai so expensive?
Metra Union Pacific West Schedule
Chelsea player who left on a free is now worth more than Palmer & Caicedo
Craigslist Parsippany Nj Rooms For Rent
Apply A Mudpack Crossword
CHESAPEAKE WV :: Topix, Craigslist Replacement
Tugboat Information
Remnant Graveyard Elf
Uc Santa Cruz Events
Clairememory Scam
What Is A Good Estimate For 380 Of 60
Mens Standard 7 Inch Printed Chappy Swim Trunks, Sardines Peachy
Jack Daniels Pop Tarts
Where does insurance expense go in accounting?
Restaurants Near Paramount Theater Cedar Rapids
Shreveport Active 911
Bad Moms 123Movies
Kitty Piggy Ssbbw
Bend Pets Craigslist
Spoilers: Impact 1000 Taping Results For 9/14/2023 - PWMania - Wrestling News
Foxy Brown 2025
Hermitcraft Texture Pack
ABCproxy | World-Leading Provider of Residential IP Proxies
Never Give Up Quotes to Keep You Going
Busted Mcpherson Newspaper
Thick Ebony Trans
Weve Got You Surrounded Meme
Mynahealthcare Login
Xxn Abbreviation List 2023
Desales Field Hockey Schedule
Trust/Family Bank Contingency Plan
Blush Bootcamp Olathe
The Hoplite Revolution and the Rise of the Polis
140000 Kilometers To Miles
Shaman's Path Puzzle
Worlds Hardest Game Tyrone
Shnvme Com
2016 Honda Accord Belt Diagram
Kvoa Tv Schedule
Zero Sievert Coop
Pawn Shop Open Now
Raising Canes Franchise Cost
Banana Republic Rewards Login
Lonely Wife Dating Club בקורות וחוות דעת משתמשים 2021
Sdn Fertitta 2024
Unblocked Games Gun Games
Thothd Download
Cult Collectibles - True Crime, Cults, and Murderabilia
Euro area international trade in goods surplus €21.2 bn
Ronnie Mcnu*t Uncensored
Psalm 46 New International Version
Latest Posts
Article information

Author: Horacio Brakus JD

Last Updated:

Views: 6585

Rating: 4 / 5 (51 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Horacio Brakus JD

Birthday: 1999-08-21

Address: Apt. 524 43384 Minnie Prairie, South Edda, MA 62804

Phone: +5931039998219

Job: Sales Strategist

Hobby: Sculling, Kitesurfing, Orienteering, Painting, Computer programming, Creative writing, Scuba diving

Introduction: My name is Horacio Brakus JD, I am a lively, splendid, jolly, vivacious, vast, cheerful, agreeable person who loves writing and wants to share my knowledge and understanding with you.