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

SEE MORE:

6 Comments

Dom

A knowledge craver who always strive to be wiser everyday.

    avatar
    4 Comment threads
    2 Thread replies
    0 Followers
     
    Most reacted comment
    Hottest comment thread
    5 Comment authors
    DevonSheratonDomAliceLindsey Recent comment authors
      Subscribe  
    newest oldest most voted
    Notify of
    Lindsey
    Guest
    Lindsey

    Thank you! The first solution helped me.

    Alice
    Guest

    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!

    Sheraton
    Guest

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

    Devon
    Guest
    Devon

    I have only 1 coupon code and I cannot seem to get it to work.

    I am trying to give free shipping for products in a specific category, to anywhere within a certain province.

    I followed this exactly and it doesn’t seem to work.

    I get the error code “The coupon code “berettaday” is not valid.”

    Please help!