Shopify discount code not working at checkout usually comes down to one thing: the code, the cart, or the customer doesn’t match a rule you set in Shopify Admin → Discounts. The fastest fix is to read the exact error message a shopper sees, match it to its cause in the table below, and change that one setting. Almost every failure traces back to nine issues—and heading into Black Friday 2026, one new cause outranks the rest: discounts that used to run on Shopify Scripts have silently stopped working.

When people say a discount “isn’t working,” they rarely mean the same thing. It can mean the code is rejected outright, that it applies to the wrong products, that two promotions refuse to stack, or that an automatic discount never fires. Each of those is a different setting, so the error message is your real diagnosis—not the fact that “the code is broken.”

Shopify discount code not working: start with the error message

The message at checkout tells you the cause before you touch a single setting. Shopify uses distinct wording for each failure, and the query genuinely deserves a lookup table rather than a paragraph. Find your symptom, then apply the fix.

Checkout symptomLikely causeFix
”Enter a valid discount code”Code is inactive, expired, or mistypedAdmin → Discounts: confirm the code is Active and today falls inside its start/end dates
”Discount code isn’t valid for the items in your cart”Product/collection scope or minimum-purchase rule doesn’t match the cartMatch the discount’s eligible products and minimum to what’s actually in the cart
”Some discount codes couldn’t be used together”Codes belong to classes that aren’t set to combineEnable combinations on each discount; check product/order/shipping classes
”This discount code has already been used”Usage limit or one-per-customer cap hit—or a pending checkout is holding itRaise the limit, or wait for the abandoned checkout to expire
Discount applies to the wrong items”Applies to” is set to the wrong collection or variantRe-scope the discount to the correct products or collection
Code works in one country but not anotherDiscount isn’t active in the customer’s market or currencyEnable the discount for that market under Markets
Automatic discount not working with a bundle appA third-party app discount is overriding or not combiningSet the app discount to combine, or adjust discount priority
Discount silently stopped in mid-2026It ran on Shopify Scripts, retired mid-2026Rebuild it as a Shopify Function or a public discount app
”Isn’t available to you right now”Customer isn’t logged in or isn’t in the eligible segmentRequire account login, or fix the customer segment and tags

Work top-down: the first four rows cover the large majority of “enter a valid discount code” and “not valid for the items in your cart” complaints.

Why isn’t my discount code working on Shopify?

Most often, it’s a stacking conflict—your code is fine, but it collides with another discount. Shopify sorts every discount into one of three classes: product, order, and shipping. Discounts don’t combine on their own; you have to switch combinations on inside each discount, and even then, two discounts of the same class usually can’t stack.

The limits are specific. Shopify allows up to 5 product or order discount codes plus 1 shipping code per order, and a cart can carry a maximum of 25 active automatic discounts. When several apply, they calculate in a fixed order—product first, then order, then shipping—which is why a “10% off” can look wrong once free shipping is layered on top.

“When a customer enters a discount code during checkout that doesn’t exist or isn’t currently active, the message ‘Enter a valid discount code’ is displayed.” — Shopify Help Center

If a code and an automatic discount both qualify but won’t apply together, open each one and confirm combinations are enabled for the other’s class. This is also the fix for the classic “automatic discount not working” report and most “some discount codes couldn’t be used together” messages.

The BFCM 2026 curveball: Shopify Scripts stopped running

If a discount that worked for years quietly died in mid-2026, this is almost certainly why. Shopify Scripts stopped executing on June 30, 2026, and new Scripts were blocked from April 15, 2026. Any Script-based tiered pricing, custom stacking logic, or “buy X get Y” rule simply stops—often with no error, just a discount that never lands.

The replacement is Shopify Functions, which now handles custom discount logic that Scripts used to. If your store relied on Scripts, rebuild those rules as a Function or a public app before your promo calendar fills up—here’s our Scripts-to-Functions discount migration guide. With merchants generating a record $14.6 billion during Black Friday–Cyber Monday 2025, a silently broken discount during peak week is expensive. Slot the audit into your BFCM 2026 prep timeline now, not in November.

Is there a glitch on Shopify?

Almost never. What looks like a platform glitch is usually a browser or session issue on the tester’s end. A one-time-use code held by an unfinished checkout, cached cart data, or a logged-in admin session can all produce a false “already used” or “not available” error.

Before you open a support ticket, test the code in an incognito window with a clean cart as a normal shopper would. If it applies there, the code is fine and the earlier failure was a stale session—not a bug in Shopify. If it still fails in incognito, the cause is a rule, and the table above points you to it.

Your pre-Black Friday discount test checklist

Run this once per promo before it goes live, and you’ll catch nearly every failure before a customer does:

  1. Confirm status and dates. The code is Active, and today sits inside its start and end dates.
  2. Match the cart. Add the exact products and quantities a shopper needs; confirm the minimum-purchase rule is met.
  3. Test combinations. Add every other live discount and check the classes actually stack the way you intend.
  4. Check usage limits. Verify per-customer and total-use caps won’t lock out real buyers on day one.
  5. Test each market. Apply the code in every currency and country you sell to.
  6. Audit legacy discounts. Confirm nothing you’re counting on still runs on retired Shopify Scripts.
  7. Do the incognito run. Complete a full checkout in a private window to rule out session errors.

If discount codes keep leaking or conflicting every season, it may be worth rethinking the mechanic itself. Community-driven models like group buying lower prices through volume instead of stackable codes, which sidesteps most of the errors above—and closes the door on discount-code leaks that quietly erode margin. Whichever route you take, the rule for BFCM 2026 is the same: read the error message, fix the one setting it names, and test in incognito before the traffic arrives.

Frequently Asked Questions

Why isn't the discount code working?

A discount code fails when it's inactive or expired, when the cart doesn't meet the code's product or minimum-spend rules, or when it clashes with another discount. Check the exact error message at checkout, then confirm the code's status, dates, and eligibility rules in Shopify Admin under Discounts.

Why are discount codes not working?

Discount codes stop working most often because of expired dates, unmet minimum requirements, reached usage limits, or combination conflicts with automatic discounts. In 2026, a new cause is common: codes built on Shopify Scripts stopped running after Scripts retired on June 30, 2026, and need rebuilding in Functions.

Why is my automatic discount not working on Shopify?

An automatic discount won't apply if the cart misses its conditions, if it isn't set to combine with an active code, or if a bundle app's discount takes priority. Confirm the automatic discount is active, meets its minimum, and has combinations enabled in its settings.

Why does it say 'Enter a valid discount code'?

Shopify shows 'Enter a valid discount code' when the code doesn't exist or isn't currently active. Double-check for typos, confirm the code is turned on, and verify today's date falls within its scheduled start and end dates in Shopify Admin.

Can you combine two discount codes on Shopify?

Yes, if the discounts are set to combine. Shopify allows up to 5 product or order discount codes plus 1 shipping code per order, and each discount must have combinations enabled. Two discounts in the same class usually can't stack unless you're on Shopify Plus.