To create a discount code in Shopify, you find everything on one page of the admin: Discounts. There you create codes that customers enter at checkout and automatic discounts that apply themselves. By the end of this guide, your discount is running and you know which other discounts it works together with.
Requirements
- Access to the Shopify admin with access to Discounts
- decided in advance: size of the discount, period, products affected and customer group
- your store’s time zone is correct, because the start and end of a discount follow it
Which discount types Shopify has
- Amount off products
- Percentage or fixed amount on specific products or collections.
- Amount off order
- Percentage or fixed amount on the order subtotal.
- Buy X get Y
- Customers who buy certain items get others at a reduced price or free.
- Free shipping
- Waives the shipping costs when the conditions are met.
Each type can be created as a discount code or as an automatic discount.
Create a discount code
-
Open discounts. In the Shopify admin, go to Discounts and click Create discount.
-
Choose the discount type. In the Select discount type menu, click the appropriate type, for example Amount off products or Amount off order.
Create discount: method, code and discount value -
Set the code. Under Method, choose Discount code. In the Discount code section, enter a name or click Generate random code. Avoid special characters.
-
Enter the discount value. In the Value section, choose between Percentage and Fixed amount. For a product discount, use Applies to to narrow it down to Specific products or Specific collections.
-
Set a minimum requirement. In the Minimum purchase requirements section, you can require a Minimum purchase amount or a Minimum quantity of items. For the minimum purchase amount, only product prices count, not shipping and taxes.
-
Define the customer group. In the Eligibility section, you define whether the discount applies to all customers, to individual customers, to customer segments or only in certain markets.
-
Limit usage. In the Maximum discount uses section, you limit the total number of redemptions or restrict the code to one use per customer.
-
Allow combinations. In the Combinations section, choose the discount classes the code may apply together with.
-
Set the period. In the Active dates section, enter the start date. With Set end date, the discount ends by itself; without an end date, it runs indefinitely.
-
Save. Click Save and redeem the code once in a test order.
Create an automatic discount
The path is the same. Under Method, choose Automatic discount and enter a name in the Title section. You set value, minimum requirement, eligibility, combinations and period as you do for a code. You set usage limits per customer on the discount code.
An automatic discount only takes effect once all required items are in the cart. With “Buy X get Y”, the customer also has to add the free item to the cart themselves.
Combine discounts
Shopify assigns each discount to a class: product discount, order discount or shipping discount. Several discounts apply together only if combining is allowed on each of the discounts involved.
- Always possible: order discount with free shipping, product discount with free shipping, product discounts on different items.
- Only for eligible stores: product discount with order discount, and several order discounts together. Stores with customizations through checkout.liquid are excluded, among others.
- Only with Shopify Plus: several product discounts on the same item.
Shopify calculates in a fixed order: first product discounts, then order discounts on the reduced subtotal, finally shipping discounts.
Limits you should know
- at most 25 active automatic discounts, app discounts included
- per order at most five codes for product or order discounts and one code for shipping
- a discount code can apply to up to 100 specific customers, products and variants
- up to 20,000,000 unique codes per store in total
Common mistakes when creating discount codes
- Combination allowed on one side only. If it is not enabled on the second discount, the customer gets an error message at checkout.
- Fixed amount on several items. The option Only apply discount once per order is preselected. If the amount should be deducted per item, disable it.
- No end date. The code stays valid until you end it. Open the discount and click Deactivate.
- One per customer, then duplicated. The restriction applies per discount. If you recreate a deleted discount, you allow all customers one more redemption.
- Time zone overlooked. A discount with a start date begins at midnight in the store’s time zone.
Help with discount rules
If your campaign needs rules that Shopify does not support out of the box, such as tiered discounts, we check whether an app is enough or whether a custom rule with Shopify Functions makes sense.