Shopify discount code not working? How to find the cause and fix it
Short answer. A Shopify discount code that "doesn't work" is usually doing what it was set up to do: one of its rules is saying no. The first thing I check is whether another discount is already on the cart, because Shopify discounts do not combine unless both of them are set to allow it. The quickest check is to empty the cart, add one product the code covers, and try the code in a private browser window. If it works there, the code is fine and the problem is something about that customer or their cart.
Last updated 22 November 2026.
Why does Shopify reject a code without saying why?
Every code carries rules: dates, usage limits, products, customers and combinations. All must pass. When one fails, the shopper gets a short message. Shopify's discount FAQ explains the main ones. "Enter a valid discount code" means the code does not exist or is not active. "[code] discount code isn't valid for the items in your cart" means the code is real but the cart does not qualify. A message about codes not being used together means a combination rule stopped it. Ask the customer for a screenshot.
Below are the causes in the order I check them. Menu names are as Shopify's help pages give them at the time of writing.
Is another discount already on the cart?
What you see: the code works on its own but fails when an automatic discount (one that applies itself, no code needed) or a second code is already applied. The shopper may see "Discount couldn't be used with your existing discounts", or Shopify keeps whichever discount gives the shopper the best result.
Why: Shopify discounts do not combine by default. Each discount has a class: product, order or shipping. Two discounts only stack when each one is set to combine with the other's class. Some pairs have extra limits. Product plus order, and order plus order, are only open to stores that meet Shopify's conditions, which its combining page lists. Two shipping discounts can never combine. An order can carry at most five product or order codes and one shipping code.
Fix:
- In your Shopify admin, go to Discounts and open the code.
- In the Combinations section, tick the classes it may combine with. Click Save.
- Open the other discount (often the automatic one) and do the same. Both sides must allow it.
Has the code started yet, or already ended?
What you see: the code fails for everyone, often at the start or end of a sale.
Why: start and end times follow the time zone set in your admin, not the shopper's. If your store is set to a United States time zone and you sell in Australia, the sale can start or stop many hours from when you expected. A rollout (Shopify's tool for scheduling or testing discounts) can also switch a discount off for some customers, overriding its dates.
Fix:
- Check your store time zone in Settings > General, in the Store defaults section.
- Open the discount and check Active dates, both the day and the time.
- If the discount is in a rollout, its details page shows its real status.
Has the code hit its usage limit?
What you see: the code worked earlier and now fails, or a returning customer is told the code "has already been used".
Why: under Maximum discount uses there are two limits: total uses across your store, and one use per customer (tracked by email or phone number). Shopify's FAQ adds that an unfinished checkout can hold on to a code. A declined payment normally releases it, but the hold can stay if a payment provider fails to report the failure.
Fix:
- Search Orders to see whether the customer really did use the code.
- Raise the limit on the discount if you want more uses.
- Turning the code off and on, or renaming it, does not reset its usage history. To give the customer a fresh go, create a new code with the same settings.
Does the cart qualify?
What you see: "[code] discount code isn't valid for the items in your cart", or the code works on some carts and not others.
Why: the code may cover only certain products or collections (groups of products), or need a minimum spend or number of items. The minimum counts product prices only, not shipping or tax. For a product discount, only the products the code covers count towards the minimum, at their price after any earlier product discount. On stores not on Shopify Plus, products in a "buy X get Y" deal cannot take another product discount as well.
Fix: open the discount and read Applies to and Minimum requirements. Then rebuild the customer's exact cart and compare it line by line.
Is the customer allowed to use it?
What you see: the code works for you but not for a particular shopper.
Why: under Eligibility a code can be limited to specific customers, customer segments (saved groups of customers) or markets (countries or regions you sell to). Shopify's FAQ says segment-only discounts apply only to existing customers, because a new customer joins a segment after their first completed order. So a "welcome" code tied to a segment fails on a first order.
Fix: set Eligibility to All customers if the offer is meant for everyone. If it is not, tell shoppers to check out with the same email the offer was sent to.
Is the code real, active and typed correctly?
What you see: "Enter a valid discount code". A switched-off code can also show "Unable to find a valid discount matching the code entered".
Why: the code may be expired, switched off, still waiting to start, or never saved. Or it was mistyped: a letter O for a zero, or a space copied from an email.
Fix:
- In Discounts, use the Status filter to find the code. An expired code can be switched back on with Activate.
- Copy the code from the admin and paste it into a test checkout.
- To stop typing errors, open the discount, click Promote, choose Get a shareable link, and send customers that link. The code then applies itself when they reach checkout.
Is the shopper checking out somewhere the code can't reach?
What you see: the code works on your website but not in another place a customer buys, or there is no box to type a code at all.
Why: Shopify says codes work on every sales channel set up for your store, and you cannot limit a code to certain channels. But combining discounts only works for the Online Store, the Storefront API (used by custom shopfronts) and Shopify POS (in-person selling), not checkouts on Facebook, Instagram or Google. Shopify gives four reasons the code box can be missing: no active code exists, the order is a draft order invoice link (codes are off there by default), the shopper uses Shop Pay and has not logged in, or an app has hidden it.
Fix: work through those four. If an app hides the box, check its settings.
Is an app getting in the way?
What you see: codes fail only when a particular app's offer, bundle or reward is in the cart.
Why: apps can create their own discounts, and Shopify's FAQ notes an app can remove a code at checkout and show its own message.
Fix: remove the app's offer and try again. If the code now works, check the app's combination settings or ask its developer.
How do I check it is fixed?
Test as a shopper, not as the owner:
- Open a private browser window on your phone. Do not log in to your admin.
- Add the exact products the promotion advertises, at the advertised quantity.
- Go to checkout, enter the code, and check the total drops by the right amount.
- Repeat with your automatic discount active, and with the cart just under any minimum spend.
- If you edit the discount during the sale, test again.
To check the rest of the buying path (product page, cart, the step into checkout), the free Bilby store scan walks your store in a real browser like a shopper and shows where it stopped.
If the code works but checkout still fails, see what to check when the checkout page is blank and how to tell if checkout broke after a theme update. The free scan walks the buying path once.
Frequently asked questions
Why is my Shopify discount code not working?
Can customers use two Shopify discount codes at once?
Why does a code work for me but not for my customer?
Why did my discount start or stop at the wrong time?
Does turning a code off and on reset its usage?
How do I stop customers mistyping a code?
Scan your own store with the free scan. It takes about two minutes and needs no sign-up.
See what Bilby finds in your store.
One free visit, the whole report: a screenshot of each step and the fix named. No signup.
Start tonight.
Type your store. Bilby walks it now and shows you what it found. Free, no card.