Eva Answers / Shopify
How Do You Create a Discount Code on Shopify?
Answered by Hai Mag, Founder & CEO, Eva Commerce, with 20+ years in eCommerce transformation, marketplace optimization, and AI-driven automation.
Last reviewed: December 2, 2026
Short answer: In your Shopify admin, go to Discounts, click Create discount, pick the discount type, and choose Discount code as the method. Enter a code name, set a percentage or fixed amount, add any product, minimum, customer and usage limits, set the active dates, and save. To share it, open the discount and use Promote to get a shareable link.
Where to find it
Discount codes live in the Discounts section of your Shopify admin. Shopify’s amount off discount steps start from Discounts, then Create discount, then the discount type (Shopify Help Center). The same flow covers Amount off products, Amount off orders, Buy X get Y and Free shipping, and for each one you choose Discount code or Automatic discount as the method (discount types).
| Setting | What it controls | Tip |
|---|---|---|
| Method | Discount code (typed at checkout) or automatic discount | Use a code when you want to target one list or partner |
| Discount value | Percentage or fixed amount | A fixed amount on specific products comes off once per order unless you clear “Only apply discount once per order” |
| Applies to | Specific products or collections (amount off products) | A code can apply to up to 100 specific customers, products and variants |
| Minimum requirements | Minimum purchase amount or minimum quantity | Shipping and taxes do not count toward the minimum |
| Eligibility | All customers, specific customers, customer segments or markets | Segments keep acquisition offers away from customers already buying at full price |
| Maximum discount uses | Total uses and one per customer | One per customer is tracked by email or phone number |
| Combinations | Which other discount classes it can combine with | Test stacked offers before launch |
| Active dates | Start and optional end date | Times follow the time zone set in your Shopify admin |
Steps
- From your Shopify admin, go to Discounts and click Create discount.
- Select the discount type, for example Amount off products or Amount off orders.
- Under Method, select Discount code, then type a code name such as WELCOME15 or click Generate code. Avoid special characters so the code works in your checkout URL.
- In Discount value, choose Percentage or Fixed amount and enter the value.
- For a product discount, choose Specific products or Specific collections under Applies to.
- Optional: set a minimum purchase amount or minimum quantity of items.
- Under Eligibility, choose all customers, specific customers, customer segments or markets.
- Under Maximum discount uses, set a total limit, one use per customer, or both.
- Under Combinations, choose which other discount classes the code can combine with.
- Set the start date and, if the offer should expire, an end date. Then save.
- To share it, open the discount, click Promote and select Get a shareable link, then copy the link or the QR code.
Exceptions and edge cases
- Store limit. Shopify caps each store at 20,000,000 unique discount codes in total, and apps cannot raise that limit. Delete old codes if you reach it.
- Post-purchase offers. A code applied at checkout does not apply to post-purchase offers, and codes cannot be entered on the post-purchase page.
- Deleted and recreated codes. If you delete a one-per-customer discount and create a duplicate, customers who used the old one can use the new one once.
- Shareable links stay applied. The discount is saved to the customer’s cart and browser until they remove it at checkout or clear their cookies.
- In person. Customers can redeem discount codes online and in person if you use Shopify POS.
- Free shipping offers. Free shipping is its own discount type. See how to set up free shipping on Shopify.
Eva Commerce is an official Shopify Partner. Eva’s Shopify management covers store management, design and development, CRO, Google and Meta ads, and email and SMS retention from one team. Eva’s Shopify discount strategy guide sets a contribution floor for each offer, keeps one owner and a promotion calendar for combination rules, and tests the exact checkout paths on mobile and desktop before launch. Call 858-315-2020.
Follow-up questions
How do I get a discount link on Shopify?
In Discounts, click the discount, then click Promote and select Get a shareable link. Choose the page, product or collection the link should open, then copy the link or download the QR code. When a customer opens the link, the code is applied to their cart.
What is the difference between a discount code and an automatic discount?
A customer types a discount code at checkout. An automatic discount applies in the cart and at checkout when the order meets its conditions. Shopify suggests codes for targeted campaigns such as emails to a customer group and automatic discounts for store-wide promotions.
How many discount codes can a customer use on one order?
Shopify applies a limit of 5 discount codes per order, and codes from shareable links count toward it. Whether codes combine depends on the Combinations settings of each discount.
Can I limit a code to one use per customer?
Yes. Under Maximum discount uses, check Limit to one per customer. Shopify tracks it by the customer’s email address or phone number. You can also set a total number of uses across all customers.