"Discount code isn't valid for the items in your cart": the Shopify fix

Good news first: the code exists and is active. Shopify just doesn't think anything in this cart qualifies for it.

By Mark Barron, founder of CampaignCart QA ·

Shopify checkout message: AIO20ONE discount code isn't valid for the items in your cart
A code set up for a different product. Our test store, 20 November 2026.

What the message means

The full message reads [CODE] discount code isn't valid for the items in your cart. The code is limited to specific products or collections, and none of the items in the cart are on that list.

Why it happens

How to fix "isn't valid for the items in your cart"

  1. Open the discount and look at Applies to.
  2. If it's a collection, open the collection and check every promoted product is in it. For automated collections, check the conditions still match those products.
  3. If it's specific products, check every variant you sell is included, not just the first one.
  4. Check the discount's minimum purchase requirement against the size of cart your offer targets.
  5. Save, then add the exact product and variant from your email to a cart in a private window and apply the code.

If your offer really is "everything", an Amount off order discount avoids this problem entirely, because it applies to the whole cart rather than a product list.

Sources