Magento Tutorials

How to Solve “Coupon code is not valid” Error in Magento 1 & 2

magento-coupon-code-not-valid

Sometimes in Magento, the coupon codes that you set up stop working for no reason. There’s an error message saying “Coupon code xxx is not valid”. This guide is gonna help you get your coupon codes working again.

Since there are several possible causes for this error, you need to check them one by one until your problem is solved. Most of the time, the problem lies in the “Shopping Cart Price Rules”.

How to Solve “Coupon code is not valid” Error

In Magento 1:

Log into your Magento backend. Go to Promotions > Shopping Cart Price Rules.

  1. Under Rule Information tab, check Customer Groups to see if it is set correctly, or even been set at all. Normally you will want to enable it for “NOT LOGGED IN” customers. You can also try to enable it for all of the customer groups to see if the problem is there. If after enabling all customer groups the problem still persists, move on to the next steps.
    Magento 1 rule information
  2. Under Conditions tab, see if any condition exist. If there is any, check the logic to see if it prevents the coupon code from being applied.
    Magento 1 coupon conditions
  3. Under Actions tab, notice the Stop Further Rules Processing. If it is set to Yes then it is preventing other coupon codes from being applied. You may want to set it to No. Notice that this does not stop the current coupon code from happening, but other coupon codes. So if you are having problem on your current coupon code, you may want to check other codes and set Stop Further Rules Processing of all of them to No.
    Magento 1 coupon actions

In Magento 2:

Log into your Magento backend. Go to Marketing > Promotions > Cart Price Rules.

Magento 2 Cart Price Rules

  1. Under Rule Information section, check Customer Groups to see if it is set correctly, or even been set at all. Normally you will want to enable it for “NOT LOGGED IN” customers. You can also try to enable it for all of the customer groups to see if the problem is there. If after enabling all customer groups the problem still persists, move on to the next steps.
    Magento 2 rule information
  2. Under Conditions section, see if any condition exist. If there is any, check the logic to see if it prevents the coupon code from being applied.
    Magento 2 coupon conditions
  3. Under Actions section, notice the Discard subsequent rules. If it is set to Yes then it is preventing other coupon codes from being applied. You may want to set it to No. Notice that this does not stop the current coupon code from happening, but other coupon codes. So if you are having problem on your current coupon code, you may want to check other codes and set Discard subsequent rules of all of them to No.
    Magento 2 coupon actions

 

Related post: Catalog Price Rules not working in Magento 2

How to Solve “Coupon code is not valid” Error in Magento 1 & 2
5 (100%) 3 votes
5 Comments

Dom

A knowledge craver who always strive to be wiser everyday.

    5 Comments

    1. Lindsey
      02/19/2018 at 7:38 am

      Thank you! The first solution helped me.

      • Dom
        03/05/2018 at 2:32 am

        Great to hear that, Lindsey! 🙂

    2. Alice
      09/27/2018 at 10:44 pm

      I’ve tried all of these things, applied to all customer groups, only condition is orders vale >15 and discard subsequent rules is turned to yes. When testing on a basket of £20 continues to say, Coupon Code not valid. Please Help!

      • Dom
        09/28/2018 at 11:21 am

        Hi Alice. Do you have any other active coupon codes? If you do, check if any of them have the Discard Subsequent Rules option on Yes, because they may stop your testing coupon code from processing. Try turning Discard Subsequent Rules of all of them into No.
        Hope that helps!

    3. Sheraton
      11/28/2018 at 2:39 am

      Cant seem to get a code to work when a reorder is placed through a users past orders in account. Any ideas?

    Reply your comment

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