Sell and growArticle

Shopify Discount Codes: Creating Discounts That Pay Off

Code or automatic discount, percentage or fixed amount, free shipping: how to create a Shopify promotion that drives sales without eating your margin.

Grégory RixensFounder of MerchantLab5 min readUpdated on October 26, 2026
Screenshot of the Shopify admin replica in MerchantLab

To create a discount code on Shopify, go to Discounts, click "Create discount", choose the type (amount off products, amount off order, buy X get Y or free shipping), then set the code, the value, the conditions and the dates. A discount that pays off isn't the most generous one: it's the one with a specific goal (first order, bigger cart, clearing stock) and conditions that protect your margin.

Discount types on Shopify

Shopify offers four main families of discounts. Each one serves a different goal.

Type Example Typical goal
Amount off products 15% off the "Summer" collection Highlighting or clearing a product line
Amount off order €10 off orders of €60 or more Increasing the average order value
Buy X get Y Buy 2, get the 3rd free Moving volume, introducing a product
Free shipping Free shipping from €50 Removing the shipping cost obstacle

For each one, you also choose the method:

  • Discount code: the customer enters it at checkout ("WELCOME10");
  • Automatic discount: it applies on its own when the conditions are met.

Creating a Shopify discount code step by step

  1. In the admin, open Discounts, then Create discount.
  2. Choose the type of discount.
  3. Method: "Discount code" (enter the code or generate it) or "Automatic discount" (give it a title).
  4. Value: percentage or fixed amount, and the products or collections it applies to if needed.
  5. Minimum purchase requirements: none, a minimum purchase amount, or a minimum quantity of items.
  6. Eligibility: all customers, or specific segments or customers.
  7. Usage limits: total number of uses, one use per customer.
  8. Combinations: which other discounts this one can be combined with.
  9. Active dates: start, and end if the offer is temporary.
  10. Save, then test the code with a test order.

The summary on the right of the screen recaps the discount: read it before saving. It shows in one sentence what the customer will get.

Choosing a good code

A code should be easy to remember and to type on a phone: short, with no ambiguous characters (0 and O, 1 and l). "XMAS15" works better than "XMAS-2026-PROMO-15PCT". To track where sales come from, create one code per channel: one for the newsletter, one for each partner.

Test before announcing

Before sending a code to your subscribers or showing it in a banner, test it yourself: add an eligible product to the cart, then an excluded product, enter the code and check the final amount. Also try a cart below the required minimum, to see the message displayed. A code that doesn't work on the day of the promotion costs a lot in trust, and generates customer messages you'll have to handle one by one.

Discounts that pay off (and those that cost you)

A discount always costs something: the discount itself, and sometimes the habit customers develop of waiting for a promotion. For it to pay off, it has to trigger a behavior you wouldn't have gotten otherwise.

Generally healthy offers

  • A free shipping threshold slightly above your average order value: the customer adds an item to qualify.
  • A discount on orders above a certain amount: same logic, with a visible reward.
  • A welcome offer limited to one use per customer, in exchange for a newsletter sign-up (with clear consent).
  • Buy X get Y on a product with a good margin, or to introduce something new.
  • A partner code dedicated to a creator or a nonprofit, to measure precisely what they bring in.

Offers to handle with care

  • A percentage off the whole catalog, with no conditions: simple, but it also applies to customers who would have bought anyway.
  • Permanent promotions: the crossed-out price loses its credibility, and the regular price looks too expensive.
  • Unlimited codes circulating on deal sites: they become a discount for everyone.

Do the math before launching

Before approving a discount, do a simple calculation: selling price, minus the product cost, minus payment and shipping fees, minus the discount. What's left is your real margin on the order. If it becomes too low or negative, the promotion isn't viable, even if it drives sales.

A worked example

Imagine a product sold for €40 that costs you €16 to make or buy, with about €4 in payment and packaging fees on your side. With no discount, you're left with €20. With a 25% off code, the customer pays €30: you're left with only €10, half your margin, for just a quarter off. To earn as much as before, you'd need to sell twice as many.

These figures are an example, not a benchmark: redo the calculation with your own costs. Above all, it shows that a percentage discount weighs much more heavily on your margin than on the displayed price. That's why free shipping above a threshold, or a small free product, often costs less than a big percentage.

Showing your promotion in the right place

A discount nobody sees is useless. Depending on the offer:

  • announcement bar at the top of the store ("Free shipping from €50");
  • homepage banner for a one-off promotion;
  • email to subscribers for a reserved code (see email marketing on Shopify);
  • abandoned cart follow-up, sparingly: if a code is systematic, some customers end up waiting for it (see recovering abandoned carts).

If you show a crossed-out price, be rigorous: in France, advertising a price reduction must be based on a real reference price. Look into the rules that apply to price reduction announcements before playing with crossed-out prices.

Tracking your discounts' results

In Discounts, each offer shows its number of uses. To go further, the reports in Analytics let you cross-reference sales and discounts. Ask yourself three questions after each promotion:

  1. How many orders used the discount?
  2. Did the average order value go up or down?
  3. What margin is left once the discount is deducted?

Our guide reading Shopify analytics helps you spot the right indicators. And to target an offer at a specific group (loyal customers, inactive customers), rely on the segments in your Shopify customer list.

Discounts are just one lever among others: for the overall strategy, reread our guide selling on Shopify. And if you want to create your first discounts without risking mistakes on a real store, you can practice in MerchantLab's replica of the Shopify admin, with an instruction at each step (plans on the pricing page).

Key takeaways

  • Four types: products, order, buy X get Y, free shipping.
  • Code for a targeted offer, automatic discount for a promotion visible to everyone.
  • Protect your margin with conditions, limits and dates.
  • Calculate your real margin before launching an offer.
  • Measure each promotion and adjust the next one.

Frequently asked questions

What's the difference between a discount code and an automatic discount on Shopify?

A discount code has to be entered by the customer at checkout: it's ideal for a targeted offer (newsletter, partner, influencer). An automatic discount applies on its own as soon as the conditions are met: it suits promotions visible to everyone, like a flash sale.

Can you combine several discount codes on Shopify?

Yes, if you allow it. Each discount has combination settings that indicate which other types of discounts it can be combined with. By default, it's best to limit combinations to keep control of your margin.

How do you limit a discount code to one use per customer?

In the discount settings, the usage limits section lets you restrict the code to one use per customer, and also set a total number of uses. It's useful for a welcome offer or a widely distributed code.

How do you know if a promotion worked?

Shopify shows the number of uses for each discount, and the reports in the Analytics section let you see the associated sales. Above all, compare the margin you made, not just the revenue: a promotion that sells more but at a loss isn't a success.

Request sent. We reply within one business day.