Storefront Notes

How-to's · Shopify · 3 min read

How to Use Multiple Coupon Codes in Shopify

Short answer

Shopify lets discounts combine when each one allows the other's class (product, order or shipping). Customers can enter up to five product or order discount codes plus one shipping code per order. Set this in each discount's Combinations section, and use the bulk code generator if you want many unique codes for one offer.

"Multiple coupon codes" means two different things to Shopify merchants. Some want customers to stack several codes on one order. Others want hundreds of unique codes for a single promotion, so each influencer or customer gets their own. Shopify handles both.

Part 1: Letting customers stack codes

How discount classes work

Every Shopify discount belongs to one of three classes:

  • Product discounts reduce the price of specific items.
  • Order discounts reduce the cart subtotal.
  • Shipping discounts reduce or remove shipping costs.

Shopify calculates them in that order: product discounts first, then order discounts on the reduced subtotal, then shipping.

The limits

According to Shopify's help center:

  • Customers can apply up to five product or order discount codes per order.
  • Only one shipping discount code can apply.
  • A store can run up to 25 active automatic discounts, including app-based ones.
  • Stacking multiple product discounts on the same line item needs Shopify Plus.

Combinations work on the Online Store, the Storefront API and Shopify POS.

How to set up combinations

  1. Go to Discounts and create or open a discount.
  2. Scroll to Combinations.
  3. Tick which classes this discount can combine with: product, order or shipping discounts.
  4. Save, then repeat for the other discount. Both discounts must allow each other's class.

Example: A 15% off sitewide order code and a free shipping code. On the order code, tick "Shipping discounts." On the free shipping code, tick "Order discounts." Now customers can use both.

Things that block stacking

  • One discount allows the combination but the other doesn't.
  • Two shipping discounts on one order.
  • Older checkout customizations. Shopify notes that product and order discounts can only combine if the store meets checkout eligibility requirements, such as not using checkout.liquid.
  • Minimum purchase requirements that aren't met after earlier discounts apply.

When codes can't combine, Shopify picks the best one for the customer.

Part 2: Creating many unique codes

Unique codes are useful when you want to track individual influencers, stop codes leaking onto coupon sites or give each customer a one-time welcome offer.

Option A: Shopify's bulk generator

  1. Create the discount as usual.
  2. Save it, then look for Generate codes or Create codes in bulk on the discount page (available on code-based discounts).
  3. Choose how many codes, their length and character set, or import a list.
  4. Set a usage limit of one per code if each should be single-use.

All the generated codes share the same rules, so you manage one discount instead of hundreds.

Option B: Email platform codes

Klaviyo and other email tools can sync with Shopify and generate unique single-use codes per subscriber. That's the cleanest way to run welcome offers and abandoned cart emails without a public code getting shared everywhere.

Protecting your margins

Stacking is great for conversion and terrible for profit if you don't plan it. A few guardrails:

  • Do the math first. Run your worst-case stack (15% off plus free shipping plus a product discount) on your lowest-margin product. If it loses money, don't allow that combination.
  • Use minimums. Free shipping over a threshold encourages larger carts and limits the damage.
  • Set end dates. Forgotten discounts are a classic margin leak.
  • Limit uses per customer. Especially for welcome codes.
  • Watch coupon sites. If a public code spreads, swap it for unique codes.

Our guide to pricing your products for profit helps you work out how much discount room you really have.

Testing your discounts

Always try the stack yourself before launching a sale. Place a test order with each code combination on desktop and mobile, and check the final total. It's much easier to fix a setting at 9 a.m. than explain a pricing error to customers at midnight.

Frequently asked questions

How many discount codes can a customer use on one Shopify order?

Shopify allows up to five product or order discount codes and one shipping discount code per order, provided the discounts are set to combine.

Can two product discounts apply to the same item?

Stacking multiple product discounts on the same line item requires Shopify Plus, according to Shopify's help center.

What happens if discounts can't combine?

Shopify applies the best single discount for the cart and may show a message that a code couldn't be used with existing discounts.

Sources and further reading

Platform features, prices and policies change. Check the official help pages linked above before you act on a detail that matters to your store.

Related guides