Limit a discount code to specific products in Shopify
A code that covers the whole store discounts items you never meant to put on sale. This tutorial limits HOODIE15, worth 15% off, to the Summit Hoodie only, with one use per customer, running 11 to 30 November 2026.
Written · Shopify admin, desktop steps · 5 minutes read
The worked example
| Code | HOODIE15 |
| Value | 15% off |
| Applies to | Summit Hoodie only |
| Minimum purchase | None |
| Usage limit | One per customer |
| $45.00 hoodie | $6.75 off, pays $38.25 |
| Hoodie + tee, $73.00 | $6.75 off, pays $66.25 |
Download the planner: product-discount-cart-worksheet.csv (100 bytes).
A line-by-line worksheet for the worked example cart: which lines the code covers and what each line costs after the discount.
1Open Discounts and start a new discount
From your Shopify admin, go to Discounts, then click Create discount. From the discount type menu, click Amount off products. A product limit is an amount off products discount: it applies to the products you choose. An amount off orders discount applies to the whole order and cannot be limited to one product.
2Choose the code method
Under Method, select Discount code. Then enter the code name in the Discount code section, or click Generate code for a random one. This tutorial uses HOODIE15.
3Set the value to 15%
In the Value section, select Percentage and enter 15. The other choice is Fixed amount, a dollar value off instead of a percent. An amount off discount does not apply to shipping costs.
4Pick the product
In the Applies to section, select Specific products, then add the Summit Hoodie. Only that product gets the discount. If you set a minimum purchase later, only the selected products count toward it.
5Set who can use it
In the Eligibility section, select All customers for a public code. The other choices are Specific customers, Customer segments, and Markets, which limit the code to the customers or regions you pick.
6Limit it to one use per customer
In the Maximum discount uses section, check Limit to one per customer. Shopify tracks a customer's email address or phone number to enforce the limit, so one customer cannot use HOODIE15 on order after order.
7Set the dates and save
In the Active dates section, set the start date to 11 November 2026 and click Set end date to set the end date to 30 November 2026. Start and end times follow the time zone set in your Shopify admin. Then click Save.
The arithmetic
The discount applies to the named product only, at its price.
| Item | Price | 15% off | Pays |
|---|---|---|---|
| Summit Hoodie | $45.00 | $6.75 | $38.25 |
| Trail Crew Tee | $28.00 | $0.00 | $28.00 |
| Total | $73.00 | $6.75 | $66.25 |
Two hoodies cost $90, so 15% off is $13.50 and the customer pays $76.50. The tee stays full price in every case: it is not on the discount's product list.
Held at the counter
Only the named product is discounted. Every other item in the cart stays full price, even when it sits next to the hoodie. Check the product list before launch: a product you meant to add but missed will sell at full price all through the sale.
A product discount does not cover shipping. The customer pays full shipping on the order. A hoodie-only order still shows a shipping line at checkout.
You cannot change the discount's type or method later. To switch this code to an automatic discount, or from a percentage to a fixed amount, delete it and create a new discount. Editing an existing discount cannot change those settings.
Sources
- Amount off discounts — Shopify's help pages: the Applies to section for specific products, the usage-limit rules, and the time zone note.
- Combining discounts — Shopify's help pages: the discount type and method cannot be changed on an existing discount.