Discount codes on Shopify are one of your most effective marketing tools — for new customer acquisition, email list growth, abandoned cart recovery, and seasonal promotions. Shopify makes it straightforward to create and manage discount codes through the admin panel. This guide covers every discount type and how to set up each one effectively.
Types of Shopify Discount Codes
Shopify supports four main types of discounts:
- Percentage off — “20% off your entire order” or “15% off a specific collection”
- Fixed amount off — “$10 off orders over $75” or “$5 off a specific product”
- Free shipping — waives shipping charges, with optional minimum order amount
- Buy X Get Y — “Buy 2 get 1 free” or “Buy a shirt, get 50% off pants”
How to Create a Discount Code on Shopify: Step by Step
Step 1: Access the Discounts Section
In Shopify admin, click “Discounts” in the left sidebar. Click “Create discount” in the top right corner. Select the discount type you want to create: Amount off products, Amount off order, Buy X get Y, or Free shipping.
Step 2: Set the Discount Method
Choose between a discount code (customers enter a code at checkout) or an automatic discount (applies automatically when conditions are met, no code required). Automatic discounts are better for promotions you want to apply broadly — like “Free shipping on all orders this weekend.” Discount codes are better for targeted promotions like email subscriber offers or influencer campaigns where tracking matters.
Step 3: Name Your Discount Code
For code-based discounts, enter the code customers will type at checkout. Tips for effective codes: make them memorable and relevant (“WELCOME10” for a new customer discount, “SUMMER20” for a seasonal sale, “FREESHIP” for free shipping). Keep codes under 15 characters. Avoid ambiguous characters — the letter O and number 0 look similar, as do 1 and l.
Step 4: Configure the Discount Value
Set the discount amount. Options vary by type:
- Percentage: Enter a percentage (10, 15, 20, 25 — standard breakpoints). Check whether it applies to all products or specific products/collections.
- Fixed amount: Enter a dollar (or local currency) value. Specify whether it applies to each item or the entire order.
- Free shipping: Optionally set a maximum shipping rate it will cover (useful if you don’t want to subsidize overnight shipping).
- Buy X Get Y: Set the required quantity and what the customer gets free or at a discount.
Step 5: Set Minimum Requirements
Optional but recommended. Set a minimum purchase amount (“10% off orders over $50”) or minimum quantity (“Buy 3 or more to get 20% off”). Minimum purchase thresholds increase average order value — customers who were going to spend $45 will add more items to reach the $50 minimum rather than miss the discount.
Step 6: Set Customer Eligibility
Specify who can use this discount: all customers, specific customer segments, or specific customers. Use customer segments for VIP-only discounts (loyal customers), wholesale discounts (registered trade accounts), or win-back campaigns (customers who haven’t purchased in 90+ days).
Step 7: Set Usage Limits
Control how many times the code can be used:
- Total uses: Limit to 100 uses for a flash sale, unlimited for a welcome series code
- One use per customer: Enable this for new customer welcome discounts to prevent abuse
Always enable “One use per customer” for percentage or fixed amount welcome discounts — without it, customers share codes with friends and your discount budget goes uncapped.
Step 8: Set Active Dates
Set a start date and optional end date. Schedule holiday promotions in advance — create your Black Friday codes in October and schedule them to activate on the right date. Set an end date to create urgency and prevent discount codes from circulating indefinitely after a campaign ends.
Step 9: Save and Test
Click “Save discount.” Open your store in an incognito window, add a qualifying product to your cart, and enter the code at checkout. Verify the discount applies correctly. Test edge cases — does it work if you add multiple items? Does it correctly enforce the minimum order amount? Check on mobile.
Advanced Shopify Discount Strategies
Bulk Discount Code Generation
For influencer campaigns or email list campaigns where each subscriber gets a unique code, use the bulk discount code generator. In Shopify admin → Discounts → Create discount → Discount code → click “Generate codes” → specify quantity. Shopify generates unique codes in bulk that you can export to CSV.
Combining Discounts
Shopify allows you to specify which discounts can be combined. In the discount settings, check “Can be combined with” and select which types of discounts this one works alongside. This lets you offer stacked promotions (“20% off + free shipping”) without creating a single combined discount code.
Automatic Discounts for Tiered Pricing
Use automatic discounts to create tiered spending incentives without requiring a code. Example: “Spend $50, save 10% | Spend $100, save 15% | Spend $150, save 20%.” Set up three separate automatic discounts with the appropriate minimum purchase amounts. Display the tiers on your homepage with a clear callout.
FAQ: Shopify Discount Codes
How do I create a Shopify discount code?
Go to Shopify admin → Discounts → Create discount. Choose your discount type (percentage, fixed amount, free shipping, or Buy X Get Y). Set the code name, discount value, any minimum requirements, usage limits, and active dates. Save and test the code at checkout before sharing it.
Can I create a Shopify discount code for specific products?
Yes. When setting up a discount, under “Applies to,” select “Specific products” and search for the products you want to include. You can also apply discounts to entire collections. This lets you run targeted promotions — 20% off your summer collection, or 15% off a specific product line.
How many discount codes can I have on Shopify?
Shopify does not impose a practical limit on the number of discount codes. You can have hundreds or thousands of active discount codes simultaneously, which is essential for influencer campaigns where each creator gets a unique tracking code.
Can Shopify discount codes be used automatically?
Yes. Shopify’s “Automatic discounts” feature applies discounts without requiring a code. When conditions are met (minimum order, specific products in cart), the discount applies automatically at checkout. Automatic discounts are visible to customers in their cart summary, which can increase satisfaction versus requiring them to find and enter a code.
How do I prevent Shopify discount code abuse?
Enable “Limit to one use per customer” for codes tied to specific promotions. Set usage limits on time-limited codes. For influencer codes, generate unique codes per influencer so you can track and revoke individual codes if abused. Consider setting a minimum order amount to prevent customers from using small discounts on cheap items.
Final Thoughts
Shopify discount codes are a versatile marketing tool when used strategically. Don’t discount constantly — customers learn to wait for discounts and your regular-price sales suffer. Reserve discounts for specific goals: acquiring new email subscribers, recovering abandoned carts, rewarding loyal customers, and clearing seasonal inventory. Used with discipline, discount codes directly grow your revenue rather than just eating into your margins.
Pair your discount strategy with abandoned cart recovery — an abandoned cart discount code sent 24 hours after abandonment is one of the highest-ROI marketing emails you can send.