Skip to content
AE DIGITAL
E-commerceBy 7 min read

Shopify discounts: automatic, codes and combinations without margin mistakes

How to choose between automatic discounts and codes on Shopify, set combination rules between discount classes and test every cart before Black Friday.

Article cover: the word “Shopify” next to a glowing icon on a violet space background

How Shopify discounts work

A Shopify discount is defined by two choices: the type, meaning what it reduces, and the method, meaning how it reaches the customer. There are four native types: amount off products, amount off order, Buy X get Y and free shipping. The method is either a code entered at checkout or an automatic discount that applies itself once the cart meets the conditions. Everything lives under Discounts in the Shopify admin.

During seasonal sales, though, most problems come from a third element. Every discount belongs to a class (product, order or shipping) and decides which other classes it can combine with. If nobody checks them one by one, late November brings orders with several reductions stacked by mistake.

Two things to know before you create anything. The type and the method can't be changed afterwards; you have to delete the discount and recreate it. And Shopify advises against discounts with a zero value, which may not behave as expected. This article is about promotions you configure by hand. Prices driven by algorithms are a separate topic, covered in our guide to dynamic pricing.

Automatic discounts or discount codes: when to use which

Automatic discounts

Use them when the promotion is public and every visitor should see it: 20% off a collection, free shipping above a threshold, a free third item. The customer doesn't have to remember anything and the cart shows the reduced price straight away. The documented limit is 25 active automatic discounts at the same time, and discounts created by apps count towards it.

Discount codes

Use a code when you want to know where a sale came from or restrict who benefits: one for newsletter subscribers, one for a creator, one for customers who haven't ordered in a year. Codes support usage limits, such as a total number of uses or one use per customer, and can be restricted to customer segments.

A customer can enter up to 5 product or order discount codes and 1 shipping code per order. If you don't want them to stack, the combination settings are what stops it, not the number of codes.

Combination rules and calculation order

Every discount has a class: product (specific items or collections), order (the cart subtotal) or shipping. In each discount's combination settings you choose which classes it can stack with. The rule works both ways: two discounts combine only if both allow it.

What can be combined

  • order with free shipping, and product with free shipping: all stores;
  • product with product on different items in the cart: all stores;
  • product with order, and order with order: eligible stores only, meaning stores without checkout.liquid customisations;
  • two product discounts on the same line item: Shopify Plus only;
  • shipping with shipping: not supported.

The order Shopify calculates them in

Product discounts are applied first to individual items, then order discounts to the already reduced subtotal, and shipping discounts last. Several percentage order discounts are each calculated on the original subtotal: 10% and 15% off €350 gives €262.50, not €267.75. When a percentage and a fixed amount off the order apply together, the percentage goes first. When two discounts can't combine, Shopify applies the one that is better for the customer in that cart, not the one created first.

Discounts by collection, quantity and customer

For a seasonal promotion, the cleanest starting point is a product discount on a dedicated collection that contains only the items whose margin you have checked. Be careful with automated collections based on tags or product type: an item uploaded in mid-November with the right tag joins the sale even if nobody planned it.

Minimum quantity and minimum spend

Minimum requirements, either a minimum purchase amount or a minimum number of items, protect your average order value. With Buy X get Y, unless you are on Plus, the products involved can't receive further product discounts. That is a useful safeguard, but remember it if you expected the welcome code to stack on top. Fixed product packs follow a different logic, explained in our guide to Shopify bundles.

Discounts for specific customer groups

A code can be limited to segments or to specific customers, for example people who have already placed at least one order. For resellers and business buyers a discount is the wrong tool. They need dedicated price lists, as described in the article on Shopify for B2B. If both systems run side by side, check that public Black Friday codes don't also apply on top of reseller prices.

Mistakes that eat into your margin

  1. Reduced price plus discount. Discounts are calculated on the selling price. If you've already lowered the price and set a compare-at price, a 20% automatic discount comes on top. Decide whether the promotion runs through prices or through discounts.
  2. A welcome code that never switches off. A 10% newsletter code that combines with order discounts will stack with everything during Black Friday. Before the peak, open every evergreen code and remove its combinations, or deactivate it for the duration of the sale.
  3. Free shipping plus an order discount. A threshold set on full prices leaves less margin when it stacks with an order discount. Redo the maths on the smallest cart that triggers both.
  4. A percentage picked without real costs. 30% off a product with a 40% gross margin leaves little for fees, shipping and advertising. Before you fix the number, go through the items in our breakdown of Shopify store running costs.

There is a regulatory side too. If you show a strikethrough price or announce a percentage available to everyone, EU price indication rules introduced by the Omnibus Directive require the prior price to be the lowest one applied in the 30 days before the reduction. National rules differ in the details: in Italy, for example, the ministry's FAQ excludes coupons reserved for specific groups of consumers. This is not legal advice; for borderline cases ask a professional.

Testing discounts before launch

Settings are verified with carts, not by reading them. Build a table of cases with the expected total for each one, then run the tests in a private browser window:

  1. a single product from the promoted collection;
  2. one promoted product plus one excluded product;
  3. a cart just below and just above the minimum amount;
  4. the automatic promotion plus every code still active: welcome, creator, abandoned cart;
  5. a logged-in customer and a guest, if some discounts are restricted;
  6. checkout on a phone and, if you sell abroad, in another currency.

What matters is the gap between expected and actual totals. If a cart comes out cheaper than planned, there is usually an open combination somewhere.

Scheduling start, end and clean-up

Every discount has a start date and time and an optional end. Always set the end. A Black Friday discount with no expiry stays live until someone notices, often while looking at December margins. Dates follow the store's time zone, set under Settings > General.

Shopify also offers Rollouts, which let you schedule when a discount is activated or deactivated together with theme and catalogue changes. An event rollout publishes changes for a set period and then returns the store to its previous state.

After the promotion

  • export the orders from the period and compare the average discount applied with the one you planned;
  • deactivate or delete unused single-use codes;
  • restore the combinations you switched off on evergreen codes;

If you'd rather have someone configure and test discounts, combinations and end dates before the peak, it is part of our Shopify setup work.

Frequently asked questions

How many discount codes can a customer use on Shopify?

According to Shopify's documentation, up to 5 product or order discount codes and 1 shipping discount code per order. They only stack if each code's combination settings allow it.

Does an automatic discount stack with a discount code?

Yes, if both are set to combine with the other's class (product, order or shipping). If they can't combine, Shopify applies whichever gives the customer the better price for that cart.

Can I change the type of an existing discount?

No. The type and the method (code or automatic) can't be changed after creation. You have to delete the discount and create a new one, so decide how it will be distributed first.

Does a compare-at price stack with an automatic discount?

Yes. Discounts are calculated on the selling price, which is already the reduced one. If you lower prices and also run a percentage discount, the customer gets both reductions.

Sources

  1. Combining discounts — Shopify Help Center
  2. Automatic discounts — Shopify Help Center
  3. Rollouts — Shopify Help Center
  4. DiscountClass enum - Admin GraphQL API — Shopify
  5. Annunci di riduzione di prezzo: domande frequenti (FAQ) — Ministero delle Imprese e del Made in Italy

Related articles

Tell us what isn't working.

We reply within one business day with a first opinion and, if it makes sense, a quote.

Write to us