To create a discount code in Shopify, go to Discounts in your Shopify admin, click Create discount and choose the type of discount. Under Method, pick Discount code, type a code name, set the value and the conditions, and click Save. Your customers then type that code at checkout.
That is the short answer. The rest of this guide shows each kind of discount step by step, as Shopify's own help pages describe them today, and helps you choose the right one.
A code only sells when shoppers see it. So the second half of this guide is about sharing your code, and above all about sending it by web push, with messages you can copy.
How to Create a Discount Code: the Basics
Creating a discount in Shopify takes a few minutes. Every kind of discount starts in the same place and follows the same first steps.
Creating a discount code in the Shopify admin
Shopify offers four kinds of discount. Each one can be a code that shoppers type, or an automatic discount that applies by itself.
The kinds of discount in Shopify
Below, we take you through how to create each one and how to choose the right one for your store. First, a few basics that apply to every kind of code.
Where do I create Shopify discount codes?
In your Shopify admin, under Discounts. Every new code shows in that list once you save it, as Shopify's page on discount codes explains. The same codes work in your online store and in person with Shopify POS.
A handy hint: if you need many codes at once, or want to bring in codes you already have, an app such as the Avada Discount Code Generator can help. Shopify itself says that some discounts, such as tiered or multi-step ones, need a discount app from the Shopify App Store.
What should I call my discount codes?
You can type your own name or let Shopify make one with Generate code. A name of your own is a small chance to build your brand. If you use a hashtag or a slogan for a sale, try it as the code too.

Shopify asks you to avoid special characters in a code name, so the code is added correctly to your checkout link. Short codes made of letters and numbers are also the easiest for shoppers to type.
How many discount codes can I create?
Each store has a total limit of 20,000,000 unique discount codes. When you reach it, you can delete old codes to make room. A single code can apply to up to 100 specific customers, products and variants.
You can also limit how many times one code can be used in total. That is a smart idea for a VIP offer, or to make a sale feel urgent.
How many times can a customer use a discount code?
That is up to you. Under Maximum discount uses you can tick Limit number of times this discount can be used in total, Limit to one per customer, or both. Leave both empty and the code has no limit. The one per customer limit follows the shopper's email address or phone number.
Can customers use more than one code?
Yes, if you allow it. Every discount has a Combinations section where you tick the kinds of discount it may combine with. Both discounts must allow it, and nothing combines by itself. Shopify's page on combining discounts gives the full rules.
Which discounts can combine
How do I check how well my discount is performing?
Go to Analytics and then Reports in your Shopify admin, and open the Sales by discount codes report. It shows your sales grouped by the name of each discount, as Shopify's sales reports page describes.
Can discounts be applied before checkout?
Yes, with an automatic discount. It applies by itself in the cart and at checkout once the shopper meets your conditions, so nobody has to type a code. To make one, follow the same steps as for a code, but under Method select Automatic discount and give it a title.

A store can have up to 25 active automatic discounts, and discounts made by apps count towards that total. Shopify's page on automatic discounts has the details.
Which method should you use? Shopify suggests a code when you want to reach a chosen group of customers, and an automatic discount for an offer that should apply to everyone. Just remember that a shopper who forgets a code may leave the cart, so how you share it matters.
How to Create a Percentage or Amount Off Discount Code
Let's start with the most common code: a percentage or a fixed amount off. Many of these steps repeat for the other kinds of discount, so this part is the longest. The steps follow Shopify's help page on amount off discounts.
- In your Shopify admin, go to Discounts and click Create discount.
- From the Select discount type menu, choose Amount off products (for chosen products or collections) or Amount off orders (for the whole order).
- Under Method, select Discount code.
- In the Discount code section, enter a code name or click Generate code.
- In the Value section, select Percentage or Fixed amount and enter the value.
- For a products discount, use Applies to to pick Specific products or Specific collections.
- Optional: in Minimum requirements, choose Minimum purchase amount or Minimum quantity of items.
- In Eligibility, choose All customers, Specific customers, Customer segments or Markets.
- In Maximum discount uses, set a total limit, a one per customer limit, or neither.
- In Combinations, tick the kinds of discount this code may combine with.
- In Active dates, set a start date and, if you want one, click Set end date.
- Click Save.
Settings worth a second look
Only apply discount once per order. For a fixed amount code on chosen products or collections, you can tick this box. If you leave it empty, the amount comes off each eligible item.
Minimum requirements. A minimum purchase amount counts product prices only. Shipping and taxes are not included. For a products discount, only the chosen products count towards the minimum.
Eligibility. To give a code only to your best customers, build a segment first in Customers and then Segments. Here is how to create customer segments.
Active dates. Start and end times follow your store's time zone. An end date also gives you an honest deadline for your messages.
One more thing to know: an amount off discount never applies to shipping costs, and an order can never go below zero.
How to Create a Free Shipping Discount Code
A free shipping code follows almost the same path. The steps below follow Shopify's help page on free shipping discounts.
- Go to Discounts, click Create discount and choose Free shipping.
- Under Method, select Discount code, then enter a code name or click Generate code.
- In Countries, keep All countries or choose the countries the offer covers.
- Optional: tick Exclude shipping rates over a certain amount and enter the highest shipping rate you are willing to cover.
- Optional: set Minimum requirements, such as a minimum purchase amount.
- Set Eligibility, the usage limits, Combinations and Active dates as for an amount off code.
- Click Save.
The exclude setting looks at shipping rates only, not at order totals. If you enter 25, any shipping rate above 25 is not free, which protects you from heavy parcels.
With no end date the code never expires. The same day as start and end makes it valid for one day. For more ideas on this offer, read our post on free shipping.
How to Create a "Buy X Get Y" Discount Code
Buy one, get one free is the best known example of a buy X get Y deal. Here are the steps, following Shopify's help page on buy X get Y discounts.
- Go to Discounts, click Create discount and choose Buy X get Y.
- Under Method, select Discount code and enter a code name, or let Shopify make a random one.
- In Customer buys, choose Minimum quantity of items or Minimum purchase amount, enter the number, and pick the products or collections under Any items from.
- In Customer gets, enter how many items get the discount and pick those products or collections.
- Under At a discounted value, choose Percentage, Amount off each or Free.
- Optional: tick Set the maximum number of uses per order and enter a number.
- Set Eligibility, Maximum discount uses, Combinations and Active dates, then click Save.
Two things often surprise store owners. First, the shopper must add every item to the cart, the free one included; Shopify does not add it for them. So your message should say "add both to your cart". Second, the free item needs stock: if it sells out, the discount cannot be used.
How to Choose Shopify Discounts to Sell More
Picking a discount can take days of study. Our detailed post on holiday discounts walks you through that. Here we keep it simple.
3 reasons to choose a percentage or amount off code
Choose a percentage or amount off code if:
- Your first goal is sales volume. A simple percentage or amount off, store wide or on chosen products, is the most direct way to drive Shopify sales.
- You want a simple message. "20% off everything" needs no explaining. Other deals need a sentence on how they work, and that is harder to fit in a short message.
- Your competitors offer big discounts. Shoppers compare stores during big sales. If others give 40% off, a free shipping offer may not catch the eye.
2 reasons to choose a free shipping code
Choose a free shipping code if:
- You have a premium brand. Heavy price cuts can make quality products look cheaper. Free shipping gives shoppers a deal without lowering the price of the product itself.
- Your products are cheap to ship. If most orders are light, free shipping costs you little. The Exclude shipping rates over a certain amount setting keeps the expensive rates out of the deal.
2 reasons to choose a buy X get Y code
Choose a buy X get Y code if:
- You have extra stock. Checking your stock is one of the first steps of your holiday preparations. If you have a lot of one product, a buy X get Y deal moves it.
- You care more about profit than about turnover. A deal like "buy one, get the second half price" makes shoppers put more in one order. That raises your average order value and usually protects your profit better than a plain percentage off.
Discount Code Strategy Tips
Creating a discount is only half the job. Shoppers have to see the code at the right moment, with a reason to use it now. Here are three ways.
Send your discount codes to shoppers with web push notifications from Firepush.
Try Firepush for freeStrategy 1: Add a discount timer
A code works better when it has a clear end. If shoppers know the offer ends soon, they are more likely to buy now than to "think about it". That works for every kind of store, from fashion to print on demand products.

Firepush has a countdown timer for this. When a shopper clicks one of your pushes, a banner appears at the top or bottom of your store with your message, the discount code and a timer that counts down. When the shopper clicks the banner's button, the code is applied at checkout by itself, so nobody has to type it. When the time runs out, the banner goes away.

Strategy 2: Send discount codes by push notification
If you want to share a code with many customers at once, on a channel that works on phones and computers and is hard to miss, push notifications are a great fit. A push appears on the shopper's screen even when your store is not open in a tab, so it suits flash sales and short offers like a Black Friday weekend.

The next part of this guide shows exactly how to write and time a discount push.
More helpful guides on push notifications:
Strategy 3: Share your code where shoppers already look
Put the code where shoppers already pay attention. For your subscribers, that is web push: it reaches them on the screen they are using. On your store, a countdown banner or a line in your header shows the code to every visitor.
Shopify itself suggests emailing a code to customers or showing it on your online store. If your store also has an email newsletter or social media pages, add the code there too, with the same end date, so every channel tells the same story.
The easiest way to share a code is often a link. Shopify can make a shareable link that applies the discount for the shopper, as its page on managing discounts explains.
Getting a shareable discount link
When a shopper opens the link, the discount is applied to their cart, and it stays applied until they remove it. Each link holds one discount and works only while the discount is active. Shopify also offers a QR code for the same link, which is handy for packaging or a shop counter.
Whatever the channel, match the message to the deal. If the code is for loyal customers, talk about thanks and rewards. If it is for shoppers who left a cart, remind them what they will miss.
Send Your Discount Code by Web Push
A web push is a short message that your store sends to the browser of a shopper who said yes to notifications. It shows on their phone or computer, even when your store is not open in a tab. If you are new to it, our complete guide to web push notifications explains how it works.
For a discount code, its strength is speed: one tap brings the shopper back to your store.
What a discount push looks like
A good discount push has four parts:
- A title that names the offer: "10% off your first order".
- A short text with the code itself and the end date.
- A button that says what happens next, like "Shop now".
- A landing page where the code works, such as a collection or your shareable discount link.
A discount push, and what happens after the click
Keep it short. In Firepush, a promo push title can be up to 50 characters and the text up to 100, as the promotional push campaigns page says. You can add up to two buttons, a hero image and a landing address of your choice.
When to send a discount push
Three moments work best for a code, because each one meets the shopper when they are already thinking about your store.
A welcome push with a code. Firepush sends a welcome push by itself, right after a visitor allows notifications, and only once per new subscriber. Firepush's own tip is to offer a discount code or free shipping in it, to encourage a first purchase.
A cart reminder with a code. The abandoned cart push sends up to three reminders, by default 30 minutes, 8 hours and 23 hours after the cart was left. If the shopper buys, the reminders still waiting are cancelled. You can add a countdown timer with a discount code to these reminders.
A flash sale. A promo push goes to all your push subscribers at once. You can send it now or schedule it for a set date and time, which is perfect for a sale that starts at a set hour.
When to send which code
Why keep the first cart reminder without a code? For some shoppers, a simple reminder is enough. If every left cart earns a code, some shoppers learn to wait for one. Save the code for the later reminders, when the shopper needs a bigger nudge.
Ready-to-copy discount messages
Each message has a title in bold and the text under it. Fill in the brackets before you send: [code] is your discount code, [date] the end date, and [store name] your store's name. In Firepush, you can write [shop] instead of [store name] and the app fills in your store name by itself.
Welcome pushes
- Welcome to [store name]: 10% off
Use code [code] at checkout on your first order. Valid until [date]. - Thanks for subscribing
Your welcome gift: free shipping with code [code]. Tap to start shopping.
Cart reminders
- You left something in your cart
Finish your order today and save 10% with code [code]. - Your cart is waiting, with 10% off
Code [code] is ready for you. It ends at midnight on [date].
Flash sales and last calls
- Flash sale: 20% off for 24 hours
Use code [code] at checkout. The sale ends [date] at midnight. - Buy one, get one free today
Add two items to your cart and use code [code]. Today only. - Free shipping this weekend
Use code [code] on any order. The offer ends on [date]. - Last hours for your 20% off
Code [code] stops working at midnight. Tap to shop before it ends.
Before you send, test the code yourself at checkout. A push with a code that does not work costs you more than no push at all.
Discount messages: do and do not
- Put the code in the text
- Say what it gives and when it ends
- Link to a page where the code works
- Test the code before you send
- Send a code that is not active yet
- Hide a minimum spend
- Promise a free item is added by itself
- Send a new code every day
Send with care
A code is a strong reason to open a push, but too many pushes teach shoppers to ignore you. Firepush's own tips for promo pushes suggest two to four a week, and no pushes at odd hours: mid-morning and early afternoon usually work best.
That matters more than ever, because Chrome now limits sites whose pushes are ignored. Our post on Chrome's push notification limits explains what Chrome does with sites whose pushes are ignored, and how to stay on the right side of it.
What Firepush does with your code
You create the discount code in Shopify, not in Firepush. Then Firepush helps you deliver it, as its help pages describe:
- Promo push campaigns send your code to all your push subscribers, now or at a time you schedule.
- Automations such as the welcome push and the abandoned cart push send at the right moment by themselves.
- The countdown timer loads your Shopify codes with Sync from Shopify, shows the code in a banner on your store, and applies it at checkout when the shopper clicks.
- Reports show, for each campaign, how many pushes were sent, the clicks, the orders and the revenue.
Increase Shopify Sales With Discount Codes
With your codes set up and shared, the last step is to learn from every offer. Two habits make the biggest difference:
- Test, measure and improve. Check the Sales by discount codes report in Shopify after each offer. Next to it, the Firepush reports show which push brought the clicks and the orders. Over time you will see which deals your shoppers like.
- Keep your channels in step. If you run more than one channel, give every one the same code and the same end date. Our post on omnichannel marketing shows how the channels of a store can work together.
What to do in your store
- Pick one goal for your next offer: more orders, bigger orders, or clearing stock.
- Choose the matching discount: amount off, free shipping, or buy X get Y.
- Create the code in Discounts, with an end date and a usage limit if you need one.
- Test the code at checkout yourself.
- Copy its shareable link with Promote and Get a shareable link.
- Put the code in your welcome push and in your later cart reminders.
- Schedule one promo push for the start of the sale and one last call before it ends.
- After the offer, compare Shopify's Sales by discount codes report with your push reports.