All posts

Technical 5 min read By the Techspawn team

How Shopify discounts combine, and where a bundle discount sits

Merchants hit the same surprise again and again: a bundle discount is live, a store-wide code is live, and at checkout only one of them applies. Or both apply and the total is lower than planned. Neither is a bug. Shopify has a defined model for which discounts can stack, and it helps to know it before you stack promotions.

Everything about Shopify below is taken from Shopify’s own documentation, linked as we go. Where the docs did not confirm something, it is left out.

The three discount classes

Shopify groups every discount into a class by what it applies to. The help center page on combining discounts puts it this way: product discounts apply to specific items or collections, order discounts apply to cart subtotals, and shipping discounts modify shipping costs.

Developers see the same three classes in Shopify’s discount Functions documentation: order, product and shipping. A discount from an app declares which class or classes it belongs to, and that decides what it can change in the cart.

Combining is opt-in, per discount

Discounts do not combine by default. According to the same help page, multiple discounts are applied to an order only when the setting on each discount allows the combination. If discount A says it combines with order discounts and discount B is an order discount that does not return the favour, they do not stack.

Which combinations are possible:

  • Order discounts with shipping discounts, for all merchants.
  • Product discounts with shipping discounts, for all merchants.
  • Product discounts with other product discounts, when they apply to separate items, for all merchants.
  • Product discounts with order discounts, and order discounts with other order discounts, only for merchants who meet the eligibility requirements on that page (it names, for example, not using checkout.liquid customizations).
  • Several product discounts on the same line item is listed as a Shopify Plus feature, using matching tags.

A shipping discount cannot stack with another shipping discount.

When discounts cannot combine, the page says the best discount for the customer’s cart is applied.

Automatic discounts versus codes

Both can be combined, provided each is set to combine with the other’s class. There are limits to know:

  • A maximum of 25 active automatic discounts, including app-based ones.
  • A customer can use a maximum of 5 product or order discount codes and 1 shipping discount code on the same order.

If a customer enters a code that cannot combine with a discount already on the cart, Shopify shows “Discount couldn’t be used with your existing discounts”, as quoted on the help page.

This is the second common surprise. An automatic bundle discount is already in the cart when the customer types a code. If the code and the bundle do not combine, the code is the one refused, not the bundle.

The order discounts are applied in

The help page gives the sequence: product discounts apply first to individual items, order discounts then apply to the revised subtotal, and shipping discounts apply last.

Two details matter for your arithmetic. Percentage order discounts are each calculated on the original subtotal, so 10% and 20% off a 100.00 order gives 30.00 off. Fixed-amount order discounts are calculated on the subtotal after product discounts.

Where a bundle discount sits

BundleUp applies its discount through a Shopify Function, as one automatic app discount at checkout, rather than rewriting the cart. That puts a bundle discount in the product class, since it reduces the price of specific cart lines.

In practice:

  • It combines with order discounts and with shipping discounts.
  • It does not combine with other product discounts. That includes a different product-class discount from another app or a native product discount on the same cart.
  • Inside BundleUp, each cart unit belongs to at most one bundle. Fixed bundles claim first, then buy X get Y, then mix and match, then quantity breaks, and within a kind by creation order. See how discounts work.

The order-discount combination in the second bullet above depends on Shopify’s own eligibility rules from the list above. If your store does not meet them, the bundle will not stack with an order discount whatever any app says.

Worked example: bundle, then order code, then shipping

Two products at 36.00 and 24.00 in a fixed bundle at 10% off, plus a 10% order code that is set to combine with product discounts, plus free shipping on a 5.00 rate.

  1. Subtotal: 36.00 + 24.00 = 60.00
  2. Bundle discount (product class, first): 60.00 x 0.10 = 6.00, giving 54.00
  3. Order code (order class, on the revised subtotal): 54.00 x 0.10 = 5.40, giving 48.60
  4. Shipping discount (last): 5.00 reduced to 0.00

Total before tax: 48.60 for goods, 0.00 shipping. Total saving: 6.00 + 5.40 + 5.00 = 16.40.

The order of steps follows the sequence on Shopify’s help page. If the code were not set to combine, Shopify would apply the better of the two for the customer’s cart, not both.

Practical settings checklist

  1. In Shopify admin, open the discount code or automatic discount and check its combinations section. Tick the classes it should combine with.
  2. Check the same on the other side. Both sides must allow the pairing.
  3. If you run a native product discount and a BundleUp bundle on the same product, expect them to compete rather than stack. Pick one per product, or use scheduling to separate them in time on Plus and Pro.
  4. Check BundleUp’s overlap warnings in the bundle list and editor. They flag active bundles that share products, which is the internal version of the same problem.
  5. Test with a real cart in an incognito window, with the same discount codes your customers will actually use. Add the products, apply the code, and read the discount lines at checkout.

One more place to look

A stack that works in your test cart can still fail on another path, so it is worth knowing where the rules stop.

Shopify’s help page notes that combinations apply to Online Store, Storefront API and POS orders, not to external checkouts. If you sell through a channel that uses its own checkout, check that channel before assuming a stack will work there.

For the BundleUp side of the rules, including how the Function chooses which bundle claims a unit, read how discounts work and plans and limits.