Discount codes are one of the simplest ways to encourage a first order, reward a loyal customer or clear stock that is moving slowly. Done well, a small discount can turn a hesitant browser into a buyer. Done badly, it can eat into your margins and train customers to wait for a sale before they buy anything. The good news is that creating a code in Shopify takes only a few minutes, and you stay in control of exactly how it works.
This guide walks through the process step by step, from creating your first code to testing it and sharing it. It also covers the decisions that matter most: how much to offer, who can use the code, and how to stop a generous idea from costing you more than it earns.
Step 1: Open the discounts section
Log in to your Shopify admin and click Discounts in the left-hand menu. This is where all your codes and automatic discounts live. Click the Create discount button, and you will see a choice between a discount code and an automatic discount. A discount code is one the customer types in at checkout. An automatic discount applies by itself when the order meets your conditions. For most promotions, a code is the better choice, because you can share it in a specific place, such as an email or a social media post, and track how many people use it.
Choose Discount code to continue. Give the code a name that is short, easy to type and easy to remember. Avoid confusing characters such as the number zero and the letter O together, and avoid codes that are hard to read on a phone. "WELCOME10" is clearer than "W3lc0me-10-Off". You can also use the Generate button to create a random code, but a readable code is easier for customers and easier for you to mention in conversation.
Step 2: Choose the type of discount
Shopify offers three main types of discount. A percentage discount takes a set percentage off the order, such as 10% off everything. A fixed amount discount takes a set amount off, such as £5 off orders over £40. A free shipping discount removes the delivery charge. Each one suits a different situation.
A percentage discount is simple and easy for customers to understand, which makes it a good choice for a first-order offer or a seasonal sale. A fixed amount discount works well when you want to encourage a larger basket, because you can set a minimum order value. Free shipping is often the most persuasive of the three, because delivery charges are one of the main reasons people abandon their carts.
Think about your margins before you pick a number. A 20% discount on a product with a slim margin can wipe out your profit entirely. Work out what the discount costs you on a typical order, and choose a figure that still leaves you with a sensible profit. A small discount that you can afford to repeat is better than a large one you regret.
Step 3: Set the rules and limits
Next, decide what the code applies to. You can apply it to the whole order, to specific products, or to specific collections. Applying a code to everything is simplest, but limiting it to certain products is useful when you want to promote a new range or clear a slow-moving line without discounting your best sellers.
Set a minimum purchase requirement if you want to protect your margins. For example, a 10% discount that only applies to orders over £30 encourages customers to add one more item to reach the threshold. Without a minimum, a customer could use a £5-off code on a £6 item and leave you with almost nothing.
Step 4: Choose who can use the code
Shopify lets you decide whether a code is available to everyone or only to specific customers. For a general sale, everyone is fine. For a loyalty offer or a first-order discount, you may want to limit it to a customer group, such as people who have signed up to your email list or customers who have bought before.
Before you save the code, read through every setting once more. Check the discount amount, the minimum spend, the dates and the usage limits. A single wrong number, such as 50% instead of 5%, can be expensive if the code goes live and gets used before you notice. It takes thirty seconds to check and it is worth it every time.
Step 6: Share the code and measure the result
After the promotion ends, look at the results in your Shopify reports. How many orders used the code? What was the average order value? Did the promotion bring in new customers, or did existing customers use it for orders they would have placed anyway? These questions help you decide whether to run the same offer again or try something different. If you are setting up other parts of your store at the same time, the guide to setting up a Shopify store for a local business covers the wider picture, and the guide to recovering abandoned carts in Shopify without an app pairs well with discount codes as a follow-up tactic.
Frequently asked questions
Can a customer use more than one discount code at checkout?
Shopify only allows one discount code per order at checkout, unless you have set up an automatic discount that combines with a code. If a customer has two codes, they will need to choose the one that saves them more, so keep your offers simple and avoid overlapping promotions.
Can I change a discount code after creating it?
Yes, you can edit most settings of an existing code, including the dates, usage limits and minimum spend. You cannot change the code itself once it has been created. If the code has a typo or you want a different name, you will need to create a new one and delete or deactivate the old one.
Do discount codes work with local pickup?
Yes. A discount code applies to the order total regardless of whether the customer chooses delivery or local pickup. A free shipping discount has no effect on a pickup order, since there is no delivery charge, so use a percentage or fixed amount code if you want to reward pickup customers.
How do I stop a discount code being shared too widely?
Set a total usage limit and an end date, and limit the code to a specific customer group where possible. If a code has already spread further than you intended, you can deactivate it at any time from the Discounts section. Act quickly once you notice, because every hour it stays live is another hour of discounted orders.
Discount codes are a useful tool, but they work best as part of a store that is already clear, honest and easy to use. If you would like help setting up your Shopify store or improving how it sells, Shehryar Noor is a web designer and developer since 2018 who has built 80+ websites for small businesses, including WordPress and Shopify stores. Get in touch through the contact page to talk about it.