
To create a discount code in Shopify, go to Discounts in your admin, click Create discount, choose Amount off products or Amount off orders, keep the method on Discount code, type a code name, set a percentage or a fixed amount, and click Save. The steps follow Shopify’s Help Center as of November 2026.
Black Friday is November 27, 2026, and Cyber Monday is November 30. A well-set code works for both dates. A careless one keeps giving money away to anyone who finds it while it is active. Before you switch on any promotion, read Fake Sale Prices: How Sellers Run Honest Black Friday Discounts and the Black Friday 2026 prep guide.
Code or automatic discount
Shopify gives you two methods. With a Discount code, the customer types the code at checkout. With an Automatic discount, the discount applies on its own when the cart meets the conditions, with nothing to type. Both are available under “Amount off products” and “Amount off orders”. The types listed by Shopify are amount off (percentage or fixed), buy X get Y, and free shipping.
Pick based on what you want to control. Codes let you see where a sale came from (one code for your email list, another for Instagram) and limit who can use it. Automatic discounts suit an open offer with no friction at checkout.
Steps for a discount code on desktop
- In your Shopify admin, go to Discounts.
- Click Create discount.
- Under Select discount type, click Amount off products or Amount off orders.
- Under Method, select Discount code.
- In the Discount code section, enter a code name or click Generate code.
- In Value, select Percentage and enter a percent, or select Fixed amount and enter a money value.
- For a product discount, use Applies to to choose Specific products or Specific collections and add them.
- In Minimum requirements, choose Minimum purchase amount or Minimum quantity of items and enter the threshold.
- In Eligibility, choose All customers, Specific customers, Customer segments or Markets.
- In Maximum discount uses, check the total limit and, if you want it, Limit to one per customer.
- In Combinations, check the classes of discount this code can combine with.
- In Active dates, set a start date and, optionally, an end date with Set end date.
- Click Save.
Optional fields include purchase type (one-time, subscription or both, shown only if you have subscriptions), the Only apply discount once per order box, and tags to group your discounts.
Four settings that protect your margin
Minimum. A 20% code with no minimum gives the discount on an order of any size. In Shopify, a minimum purchase amount counts product prices only, not shipping or taxes. A worked example: if your average order is $45 and your cheapest item is $15, a $60 minimum pushes shoppers to add an item, and 20% off $60 is $12. Run your own numbers, because with and without a minimum your profit is a different calculation.
End date. Shopify says a code without an end date does not expire. For the holiday weekend, you could start on November 27 and end on November 30. If the start and end fall on the same day, the code is valid for one day. Dates follow your store’s time zone.
Usage limits. Set a total and one per customer. The per-customer limit is tracked by email or phone. One catch: if you delete and recreate a one-use-per-customer discount, people who used the old one can use the new one once.
Combinations. Decide before launch whether the code may stack with other discounts, such as a free shipping offer. Check only the classes your margin on that product can handle.
What a discount does not do
Shopify’s page lists limits worth planning around. Amount off discounts do not apply to shipping costs, so free shipping is a separate type. When a discount covers all products, the amount is spread proportionally across the items, and no item’s value goes below $0. Codes applied at checkout also do not apply to post-purchase offers.
Other limits are large: a code can apply to up to 100 specific customers, products and variants, and each store has a cumulative cap of 20,000,000 unique codes, which a normal sale will not touch. Avoid special characters in the code name, because they can interfere with the checkout URL. A plain name such as BF26 works.
Before you share the code
Run a test checkout to see whether the minimum, the collection and the usage limit behave the way you expect. After the sale, check the sales by discount report in your admin, which shows how often each code was used. If a big discount produced few orders, compare your costs in How Much Does Shopify Cost? before you repeat it.
One more rule belongs on your checklist: the discount you advertise has to be real, so the original price cannot have been raised before the sale.
Frequently asked questions
Can I create a discount code on mobile?
Yes. In the Shopify app, open the menu, tap Discounts, then the plus button. Usage is unlimited by default in the app, and you turn on limits under Maximum discount uses.
Does the code cover shipping?
No. Shopify says amount off discounts do not apply to shipping costs. Free shipping is its own discount type.
What is the difference between a code and an automatic discount?
With a code, the customer enters it at checkout. With an automatic discount, Shopify applies it when the conditions are met, and the code and maximum use sections do not appear.
Does a code expire by itself?
Only if you set an end date. Without one, the code stays active until you turn it off.
Can I limit a code to certain customers?
Yes. Under Eligibility you can choose specific customers or customer segments.


