Z O B A E R

Loading

Guide Shopify guide

Shopify Discount Code Not Working: Every Cause and Fix

Every reason a Shopify discount code fails, from dates and limits to combinations, markets and POS, with a symptom, cause and fix checklist.
Zobaer Hossain
Zobaer H.Shopify Select Partner · 10+ years
Shopify discount code not working: every cause and fix, troubleshooting guide by Zobaer H.

Shopify discount code not working? A shopper types your code, taps Apply, and gets a red error. Or the code works for you but not for them. The cause is almost always one setting, and the error message tells you where to look.

I have fixed broken discount codes on many client stores, and the same ten causes come up again and again. This guide covers each one in the order I check them, with the exact setting that fixes it.

Here is what you will learn:

  • What each checkout error message means
  • Every reason a code fails, and how to fix it
  • Why the discount code box is missing in the cart (Dawn vs Horizon)
  • How to test a code before you send it out
  • A troubleshooting checklist to keep open while you work

Start with the error message

Each kind of problem has its own message. Ask the customer for a screenshot, or try the code yourself. This table is based on Shopify’s Discount codes FAQ and its guide to combining discounts.

Message at checkoutWhat it meansCheck first
Enter a valid discount codeThe code doesn’t exist or isn’t active right nowSpelling, status, active dates
CODE discount code isn’t valid for the items in your cartThe code exists, but the cart doesn’t qualifyApplies to, minimum requirements, Buy X get Y items
The CODE discount code has already been usedThis customer can’t use it againMaximum discount uses, unfinished checkouts
CODE discount code isn’t available to you right nowThis customer isn’t eligibleEligibility: customers, segments, markets
Discount couldn’t be used with your existing discountsAnother discount is applied and they don’t combineCombinations on both discounts

The “isn’t available to you right now” message is not in the FAQ. Shopify Support has explained on the Community forum that eligibility is checked after the shopper enters their details. So a code can apply, then vanish.

Shopify discount code not working: the checkout error messages and what each one means
Each error points to a different group of settings. Read it before you change anything.

Shopify discount code not working? Check these 10 causes

Almost every fix lives on one page. In your Shopify admin, go to Discounts and click the code. Then work down this list.

Shopify discount codes settings to check: Applies to, Minimum requirements, Eligibility, Maximum discount uses, Combinations
The six sections on the discount page that cause most problems.

1. The code has expired or hasn’t started

Check the status on the Discounts page, then open Active dates. Start and end times follow the time zone in your Shopify admin, not the shopper’s. A code that starts on November 26 starts at midnight in your store’s time zone, so a shopper abroad can be early or late.

Fix: change the dates and click Save. To bring back an expired code, open it and click Activate. It comes back with no end date, so add one if you need it.

2. The usage limit is used up

The Maximum discount uses section has two options: Limit number of times this discount can be used in total and Limit to one per customer. The second one tracks the customer’s email or phone number. When a customer can’t reuse a code, they see “has already been used”.

Sometimes the customer never finished an order. Once an order is submitted, Shopify holds the code until payment completes or fails. If a payment provider doesn’t report a failure, the hold stays.

Fix: search for the customer under Orders to see if they really used it. Raise the total limit if needed. Renaming the code, or turning it off and on, doesn’t reset its history. For one stuck customer, create a new code with the same rules and send it to them.

3. The cart doesn’t meet the minimum

In Minimum requirements, you can choose Minimum purchase amount or Minimum quantity of items. Shoppers often miss three rules:

  • If the code applies to certain products or collections, only those items count.
  • Shipping and taxes never count.
  • Gift cards in the cart don’t count, unless the discount includes the gift card product.

Example: a code needs $50 of shirts. The cart has a $40 shirt and a $30 hat. The total is $70, but only $40 counts, so the code fails.

Fix: lower the minimum, or state the rule clearly wherever you share the code.

4. The products in the cart aren’t included

Check Applies to. If it says Specific collections, confirm the product is really in that collection. New products often aren’t. A code can also cover only some variants. If you sell subscriptions, check Purchase type too.

Buy X get Y codes cause the most confusion. The shopper must add both the “buy” items and the “get” item to the cart. Shopify never adds the free item for them. Without it, they see the “discount code isn’t valid for the items in your cart” error.

Fix: add the missing products or collections to the discount. For Buy X get Y, tell shoppers exactly which items to add.

5. The customer isn’t eligible

The Eligibility section has four options: All customers, Specific customers, Customer segments and Markets. Checkout matches the customer by email or phone number, so a different email means no discount.

Segments have a catch. A brand new shopper has no customer profile yet, so they aren’t in any segment until their first order is complete. That is why a “welcome” code built on a segment often fails for the very people it was made for.

Fix: for welcome codes, choose All customers and tick Limit to one per customer. Keep segments for discount codes you send to existing customers.

6. The shopper is in the wrong market or country

If Eligibility is set to Markets, shoppers outside those markets can’t use the code. Free shipping codes have their own Countries setting. They also have an option called Exclude shipping rates over a certain amount. If the shopper picks a pricier rate, the code won’t cover it.

Currency matters for fixed amounts. A $10 code is converted at checkout, so a shopper paying in euros sees a different number. Percentage codes don’t have this problem.

Fix: add the missing market or country, raise the rate cap, or use a percentage for international stores.

7. It clashes with another discount

Every discount has a class: product, order or shipping. Two discounts only work together when the Combinations setting on each one allows the other’s class. If one says no, Shopify keeps the better deal for the shopper and drops the other. To the customer, it looks like the code was ignored.

Automatic discounts are the usual cause. A site-wide sale is already in the cart, the code can’t combine with it, and the shopper only gets whichever saves more. Also keep these limits in mind:

  • A customer can use up to 5 product or order codes and 1 shipping code per order.
  • Two shipping discounts never combine.
  • Combining product with order discounts needs a store without old checkout.liquid edits.
  • Combinations don’t work on external checkouts such as Facebook, Instagram or Google.

Fix: open each discount, go to Combinations, tick the classes it should work with, and click Save. On the Discounts page, Add filter and Combines with list every combinable discount.

Shopify discount combinations: both discounts must allow the other's class before they combine
Both discounts must say yes. If one says no, the shopper only gets the better of the two.

8. The discount code is not working on POS

Discount codes work on every sales channel, including Shopify POS, and you can’t block a code from one channel. When a code fails in your shop, check these points:

  • The staff member needs the Apply discount codes permission.
  • Every item in the POS cart must meet the code’s rules.
  • Discount codes can’t be applied to exchanges.
  • Buy X get Y discounts can’t be used at POS Lite locations.

Automatic discounts are different: they only run at POS Pro locations, and only when Also offer on Point of Sale (POS Pro locations only) is ticked.

9. Typing mistakes, spaces and look-alike letters

Copying a code from an email can grab an extra space. Shoppers also mix up O and 0, or I and l. Capital letters are not the problem: Shopify looks up discount codes without caring about case. Shopify also advises against special characters, because they can break the checkout link.

Fix: use short codes with plain letters and numbers, like SPRING15. Better still, send a shareable link. Open the discount, click Promote, then Get a shareable link. The code applies by itself, so nothing can be mistyped.

10. An app or custom checkout is in the way

Apps that change prices or checkout can hide the discount field or reject a code with their own message. Bundle apps change line prices first, and automatic discounts then use the new prices. Shopify suggests temporarily uninstalling discount or checkout apps, then testing again.

Codes also never work on the post-purchase page after checkout. On draft order invoices, customers can’t add a code by default.

Discount code box not showing: cart or checkout?

No box in the cart doesn’t mean the code is broken. It depends on your theme.

  • Dawn: the cart has no discount code box. It lists discounts already applied, with a note such as “Taxes, discounts and shipping calculated at checkout.” Shoppers enter the code at checkout.
  • Horizon: the cart has a Discount field. You control it in the theme editor under Theme settings, Cart, then Allow discounts in cart. It is on by default. Free shipping codes only show at checkout, after the shopper adds an address.
Shopify discount code box: Dawn cart without a field, Horizon cart with a Discount field, and the checkout discount field
Dawn takes codes at checkout only. Horizon adds a field in the cart too.

If the discount code box is missing at checkout itself, Shopify lists four reasons:

  1. You have no active discount codes.
  2. The checkout came from a draft order invoice or link.
  3. The shopper uses Shop Pay and hasn’t logged in to it yet.
  4. An app that changes prices or checkout is hiding it.

How to test a code so it never fails for customers

A five-minute test catches most cases of a Shopify discount code not working.

  1. On the Discounts page, check that the code shows as active.
  2. Open your store in a private browser window, so no saved cart or login gets in the way.
  3. Add products that meet the rules, plus one product that doesn’t.
  4. Go to checkout and enter the code. Use an email that matches the eligibility you chose.
  5. Enter an address in a market the code covers, and watch whether the discount stays.
  6. Check the total, then close the checkout before you pay.
  7. Repeat on your phone, and test the shareable link too.

If you place a real test order with a one-per-customer code, your email now counts as used.

Troubleshooting checklist

SymptomLikely causeFix
“Enter a valid discount code”Typo, expired, or not startedCheck spelling, status and Active dates
Works for you, fails for customersEligibility or marketSet All customers or add the market
“Isn’t valid for the items in your cart”Products, variants or the “get” item missingCheck Applies to and the Buy X get Y items
Fails on small orders onlyEligible items don’t reach the minimumLower Minimum requirements or explain the rule
“Has already been used”Usage limit or a stuck checkoutRaise the limit or send a replacement code
Code accepted, then removedCustomer not eligible once checkout knows themCheck segments and specific customers
Code ignored, sale keptAutomatic discount doesn’t combineTick the right classes in Combinations
Free shipping code failsCountry not selected or rate too highEdit Countries and the rate cap
Fails at POSStaff permission, exchange or POS LiteGive the Apply discount codes permission
No discount code box in the cartDawn has none; Horizon setting is offUse checkout, or turn on Allow discounts in cart
No box at checkoutNo active codes, Shop Pay, draft order or appActivate a code, then test without the app

Common mistakes to avoid

  • $0 or 0% codes. Shopify says these might not work at checkout. Use at least 1% or $0.01.
  • Trying to change the discount type. You can’t edit the type later. Create a new code instead.
  • Recreating a one-per-customer code. A new code has a new history, so past users can use it again.

Frequently asked questions

Why is my Shopify discount code not working?

Usually one setting blocks it: dates, usage limit, minimum, products, eligibility or combinations. Read the error at checkout, then open the code under Discounts and check those sections.

Why is my Shopify discount code not working on POS?

Check that the staff member has the Apply discount codes permission and that every item in the cart meets the code’s rules. Codes can’t be used on exchanges, and Buy X get Y discounts don’t work at POS Lite locations.

Why is the discount code box not showing in Shopify?

Dawn has no code box in the cart, so shoppers enter it at checkout. Horizon has one if Allow discounts in cart is on. At checkout, the box needs at least one active code and can be hidden by Shop Pay, draft order invoices or some apps.

Are Shopify discount codes case sensitive?

No. Shopify looks up discount codes without caring about capital letters, so SUMMER10 and summer10 work the same. Spaces and look-alike characters such as O and 0 cause far more problems.

What does “discount code isn’t valid for the items in your cart” mean?

The code exists, but nothing in the cart qualifies. The products may not be in the selected collection, the variant may be excluded, or a Buy X get Y code is missing the free item.

Can customers apply a discount code before checkout?

In Horizon, yes, in the cart. In Dawn, only at checkout. A shareable discount link works in any theme, because it applies the code as soon as the shopper opens it.

Most discount codes fail because of one small setting. For more practical guides, see my Shopify tips, or learn how to get your first sale on Shopify. If you would rather have someone set up and test your discounts, I do this as part of my Shopify store management service. Message me on WhatsApp and I will take a look.

Zobaer Hossain, Shopify designer

Written by Zobaer H.

Shopify Select Partner with 10+ years of experience and 5,000+ clients. I design and build Shopify stores, and I write these guides from real client work.

Shopify Select Partner badge

In this guide

    ★★★★★ 4.9 from 1,350+ client reviews

    Let's start

    Ready to start your store?

    Send me your idea or store link. I'll reply with honest advice and a fixed quote.

    ✓ Free quote✓ Fixed price✓ You own everything