In your Shopify admin, go to Discounts, click Create discount, choose a discount code, and set the value, eligibility rules, usage limits and dates. Then share the code with customers, who enter it at checkout.
What a Shopify discount code does
A discount code is a short string of letters and/or numbers that a customer types in at checkout. That code triggers a rule you've set, such as a percentage off, a fixed amount off, free shipping or a bonus gift.
Codes suit targeted offers: a thank you to your email list, a welcome for new subscribers, or a reward for VIPs and repeat buyers. If you're still setting up the list itself, my guide to email marketing on Shopify covers the groundwork.
Codes and automatic discounts side by side
When you create a discount, Shopify asks you to pick between a discount code and an automatic discount. They behave quite differently for the shopper.
An automatic discount applies to every eligible cart, and customers see it on the cart page before they reach checkout. They don't need to type anything. A code, on the other hand, only works for someone who has it and enters it.
You don't have to choose one for good, either. Several automatic discounts can run at the same time, and shoppers can use a mix of codes and automatic discounts on different products in one order. Both kinds sit together in one unified discounts view in your admin, so you don't need a separate list for each kind.
Making a code step by step
These steps are for the Shopify admin.
- Open your Shopify admin and go to Discounts.
- Click Create discount.
- Choose a discount code (the other option is an automatic discount).
- Set the value, such as a percentage, a fixed amount or free shipping.
- Define eligibility, such as a minimum spend, specific products or a customer segment.
- If the offer should stack, scroll to the Combinations section and tick the discount types it can combine with.
- Set usage limits and the dates.
- Save, then share the code with your audience.
Letting offers stack at checkout
Decide on stacking before you save the discount. Shipping discounts can be combined with product and/or order discounts, so a free shipping code can sit alongside money off.
Targeting, unique codes and sizing the offer
Shopify's admin lets you make a code exclusive to specific customer segments. Any segment you build in the Customers section also shows up in the Discounts section, and Shopify Messaging can send those customers the offer.
Want AI doing the heavy lifting in your marketing?
I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.
A unique discount code goes one step further. It's made for a single customer, it's one-time use and it expires once redeemed. Limited-use or unique codes are less likely to end up on voucher sites, and giving each campaign its own code helps you compare results. If you need a lot of them, these bulk discount code generator apps are built for producing codes in volume.
Discounts aren't limited to money off. Shopify says a Buy X, Get Y discount can offer a free gift above an order value or after a set number of items.
On size, Shopify's guidance (as of November 2026) puts 10 to 20% as a sweet spot for many ecommerce brands, with 25% and more tending to work best at big events such as Black Friday Cyber Monday.
Discount types beyond the built-in list
Shopify's developer documentation covers one more route. If Shopify doesn't offer the discount type you want out of the box, it can be added by apps built with Shopify Functions.
Your store may have limits on how many codes it can hold or a shopper can stack at checkout, and options and field labels may differ. Check those for your own store and plan before you promise anything to customers.
Start small with your codes
Keep it to one code per campaign, with a usage limit set, at 10 to 20% off. Save offers of 25% and more for Black Friday Cyber Monday, and if you want more sign-ups to send codes to, pair a welcome code with one of these Shopify popup apps.


