Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Coupon stacking when it shouldn't: how to find and fix it

CNV-170Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Stacking means more than one discount applies to the same cart. That can be two coupon codes, a code on top of an automatic sale, a code on top of a free-shipping rule, or a code on top of a gift or loyalty reward. Some stacking is planned. The problem is unplanned stacking, where a rule you set up for one offer quietly combines with another.

Why it costs you leads or sales

Margin left on a $100 orderExample numbers
Margin left on a $100 order (example)No discount: 60 $; One 20% code: 40 $; 20% code + 25% sale stacked: 15 $02346604015No discountOne 20% code20% code + 25% sale s…$

Example: a $100 product with a $40 cost. Illustrative numbers only.

How an unplanned stack happens
  1. Customer adds itemSale price already applies
  2. Enters code 1Accepted as intended
  3. Enters code 2Should be rejected, but is accepted
  4. Order placedDiscount is larger than planned

The checkout accepts every code, so margin is lost after the second one.

How to check if your site has it

Probe your checkout for stacking
  1. List every active discount

    Include codes, automatic discounts, free-shipping rules, bundle prices, gift cards and loyalty rewards. Note which should combine.

  2. Build a cart that qualifies for all of them

    Meet minimum spend, product and customer-group rules so no code is rejected for the wrong reason.

  3. Apply every pair

    Enter code A then B, then B then A. Order sometimes changes the result.

  4. Try a code on top of an automatic discount

    Check whether the code replaces the sale, adds to it, or is refused.

  5. Check the totals

    Compare the final price with what you expected. Also try removing a code and re-adding it, and try applying the same code twice.

  6. Test logged in and logged out

    Customer-specific or first-order rules can behave differently.

Combinations worth testing
CombinationWhat to look for
Code + codeSecond code accepted when it should be refused
Code + automatic discountBoth apply, or the better one wins
Code + free shippingShipping rule ignores exclusions
Code + gift cardGift card should pay, not discount, unless planned
Same code twiceDuplicate use in one cart
Code + sale-priced itemCode excluded from sale items but still applies

How to fix it

Set combination rules by platform
  1. Open the discount

    Go to Discounts in the Shopify admin and open the code or automatic discount.

  2. Edit Combinations

    In the Combinations section, tick only the discount types it may combine with (product, order or shipping discounts), or untick all to make it exclusive.

  3. Repeat for every active discount

    Both sides matter, so check each discount in the pair. Save and retest.

Example server-side check (Node-style pseudocode)javascript
function canApply(cart, newDiscount) {
  const existing = cart.discounts;
  if (existing.some(d => d.code === newDiscount.code)) return false;
  if (existing.some(d => d.exclusive) || (newDiscount.exclusive && existing.length > 0)) return false;
  return existing.every(d => newDiscount.combinesWith.includes(d.type));
}

How to confirm it's fixed

After changing the rules
  • Repeat every pair from your list in both orders
  • Confirm refused codes show a clear message
  • Check allowed combinations still give the planned total
  • Test code plus automatic discount and code plus free shipping
  • Test on mobile and logged out
  • Check one real order total end to end in test mode

How to prevent it happening again

Habits that stop stacking
  • Keep one sheet listing every discount and whether it combines
  • Review combination settings whenever you launch a promotion
  • Set end dates and usage limits on every code
  • Test new codes against all active ones before announcing
  • Watch order reports for unusually large discount totals
  • Search coupon sites for your brand name now and then

How FunnelGuard handles this

Frequently asked questions

Questions people ask

Why can customers use two discount codes on my store?

Most platforms allow discounts to combine unless you restrict them on each discount. A code created with a permissive setting, or an automatic discount that is allowed to combine, will stack with other codes.

How do I stop discount codes stacking in Shopify?

Open each discount in Discounts and edit the Combinations section. Untick the discount types it should not combine with, then save. Check both discounts in a pair, then test in a cart.

How do I make a WooCommerce coupon exclusive?

Edit the coupon under Marketing > Coupons, open the Usage restriction tab and tick Individual use only. That stops it being used with other coupons. Add Exclude sale items if it should not apply on top of sale prices.

Can a coupon code stack with an automatic discount?

It depends on your platform and settings. Some let a code add to an automatic discount, others apply only the better one. Test it in a cart rather than assuming.

How do I test if my coupons stack?

Build a cart that qualifies for every active discount, then apply each pair in both orders. Also try a code with an automatic discount, with free shipping, and the same code twice. Compare totals with what you expect.

Does FunnelGuard detect coupon stacking?

No. FunnelGuard does not check for coupon stacking yet. It is a possible future check, so test combinations manually for now.

What if a stacked combination has been shared online?

Fix the combination rules first, then end or limit the leaked code and issue a replacement. Check recent orders to see how many used it.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.