How to create discount codes and automatic discounts on Shopify
Shopify lets you create discount codes that customers enter at checkout, and automatic discounts that apply without a code. You can offer percentage or fixed-amount discounts, buy X get Y, and free shipping, with limits on use, dates and minimum spend, and choose which discounts can combine.
By Abdullah Ashraf, Shopify expert · Last updated: October 2026
Quick summary
- Codes for campaigns, automatic discounts for store-wide offers.
- Set limits and end dates.
- Control which discounts combine.
Create a discount
- Go to Discounts, then Create discount.
- Choose the type: amount off products, amount off order, buy X get Y or free shipping.
- Choose a code or automatic.
- Set the value, eligibility, minimum requirements and usage limits.
- Set start and end dates, and combinations.
Combining discounts
Decide whether a discount can combine with others, such as free shipping plus a product discount.
Protect your margins
Check discounts against your margin with the profit margin calculator, and prefer offers like free shipping thresholds or gifts over deep percentage cuts.
UK pricing rules
Sale claims must be genuine. See the rules on was/now prices.
Frequently asked questions
Do discounts hurt my brand?
Can I give free gifts instead?
Yes, with buy X get Y. See if it works.
Keep exploring
Related pages you might find useful next.
Let's grow your store
Tell me what you sell and where you're stuck. You'll get honest advice and a fixed quote, even if we don't end up working together.

