Guides

How to Create a Discount Code in Shopify, Step by Step

6 min read  ·  October 14, 2026

A Shopify discount code is a code your customers type at checkout to get an amount off products, an amount off the order, buy X get Y, or free shipping. You create it in the Discounts section of the admin, and the choices that matter most are the value, who can use it, and until when. This guide follows Shopify’s help documentation.

Setup timeA few minutes per code
You needShopify admin access with discount permission
CoversAmount off products or orders, with code or automatic
Last reviewedOctober 2026, from Shopify docs

Based on official documentation. Not tested on a live store.

Before you start

0 of 4 ready

Before you choose a method

A discount code is typed by the customer at checkout. An automatic discount applies without a code and shows its title in the cart. Choose the method first, because the type and method cannot be changed later.

Step 1: Choose the discount type

Open Discounts in the admin, click Create discount, and choose a type. For a percentage or fixed amount off, choose Amount off products or Amount off orders. The other types are Buy X get Y and Free shipping.

Expected result: A new discount form opens with the type you selected.

Step 2: Set the method and the code

Under Method, select Discount code. Enter the code your customers will type, or click Generate code for a random one.

Choose Automatic discount instead if you want the discount to apply at checkout without a code. An automatic discount uses a Title field that customers see in their cart.

Expected result: The code field is filled in, or the title field is filled in for an automatic discount.

Step 3: Set the value

Under Value, select Percentage and enter a percent, or select Fixed amount and enter a money amount.

Under Applies to, you can limit the discount to Specific products or Specific collections. For a fixed-amount code, you can also check Only apply discount once per order.

Expected result: The value and the scope (whole order, products or collections) are set as you planned.

Step 4: Set minimum requirements and eligibility

Under Minimum requirements, choose a minimum purchase amount or a minimum quantity of items. Then under Eligibility, choose who can use the code: All customers, Specific customers, Customer segments or Markets.

Expected result: Only the customers and markets you chose can use the code, and only above the minimum you set.

Step 5: Set usage limits and combinations

Under Maximum discount uses, you can limit the total number of uses or limit the code to one per customer. Under Combinations, check the discount classes this code can combine with.

Expected result: The total and per-customer limits match your plan, and the combination settings are checked.

Step 6: Set the active dates and save

Under Active dates, set a start date. To set an end date, click Set end date. For a one-day discount, use the same date for start and end. Leave the end date unset if the discount should not expire. Optionally add tags, then click Save.

Expected result: The discount appears on the Discounts page with the dates and values you set.

Check the discount before you rely on it

After you save, open the discount from the Discounts page and compare it with your plan: the value, the scope, the eligibility, the limits and the dates. The type and method stay fixed once the discount exists.

If you run several codes at once, check the combinations on each one. Shopify’s rule is that combinations are set for each discount individually.

Common mistakes and how to fix them

Customers say the code doesn’t work
Likely cause

The code is outside its active dates, the customer is not eligible, or the minimum order is not reached.

What to check

Check the start and end dates, the eligibility setting and the minimum requirement on the discount.

Two codes don’t combine
Likely cause

Each discount has its own combination settings, and a customer can use up to 5 product or order codes plus 1 shipping code.

What to check

Open each discount, check the Combinations section, and count the codes on one order.

The code expired earlier than planned
Likely cause

An end date was set on the discount, even though you wanted no expiry.

What to check

Check the active dates. Leave the end date unset if the code should not expire.

You need a different type or method
Likely cause

The type and method can’t be changed on an existing discount.

What to check

Delete the discount and create a new one with the correct type or method.

Discount code or automatic discount?

Use a discount code when you want to control who uses it, for example in an email campaign. Use an automatic discount when the offer should apply to every eligible order. Shopify’s combinations page notes that a store can have at most 25 active automatic discounts, and that this total includes discounts from apps.

Key takeaways

Start with the discount type and the method, because they cannot be changed later.

Use the minimum requirement and the eligibility settings to control who can use the code.

Leave the end date unset if the code should not expire.

A customer can use up to 5 product or order codes and 1 shipping code on one order.

FAQ

Can a customer use more than one discount code on an order?
Shopify's documentation says a customer can use up to 5 product or order discount codes and 1 shipping discount code on the same order. Multiple shipping discounts can't apply to the same order.
Does a discount code expire on its own?
Only if you set an end date. Shopify's steps say to leave the end date unset if you don't want the discount to expire.
Can I limit a code to one use per customer?
Yes. Under maximum discount uses, choose the option to limit the discount to one per customer. You can also set a total use limit.
Can I change the type or method of an existing discount?
No. The discount type and method can't be changed on an existing discount. Delete it and create a new one.

Get practical store fixes in your inbox

Join the KonvertiQ newsletter for short, data-backed tips on checkout, trust and conversion. No spam, unsubscribe anytime.

We use your email only to send the newsletter. See our Privacy Policy.

We use cookies for essential site functionality and, only with your consent, for analytics. More in our Cookie Policy.

Cookie settings

Choose which categories of cookies you want to allow. Essential cookies are always active.

Essential
Required for the site to function.
Analytics
Helps us understand how the site is used.
Marketing
Used to personalize advertising.