To give subscription items one discount and one-time purchases another with the same code, use OneCode: Stackable Discounts and add two product discounts to the code. Give one the Per-Discount Condition Item has subscription set to Yes, and the other Item has subscription set to No. OneCode checks each item in the cart, so a subscription and a one-time purchase in the same cart each get their own discount.
Example: the code SUBSAVE gives 15% off subscription items, 10% off one-time items, and free shipping. A customer subscribes to a $30 monthly coffee and buys a $20 mug once:
- The coffee is a subscription item, so it gets 15% off, $4.50. It costs $25.50.
- The mug is a one-time purchase, so it gets 10% off, $2. It costs $18.
- The subtotal is $43.50, and shipping is free.

Item has subscription works as a filter, not a pass-or-fail rule. With Yes, subscription items get that discount and one-time items in the same cart don’t. With No, it’s the other way round. Each item matches exactly one of the two discounts, so nothing is left out.
Set it up
- In OneCode, click Create discount, keep Discount code, and enter
SUBSAVE. - Click Add Discount Type. Keep Discount Type on Product Discount and Value Type on Percentage, and enter
15in Percentage. Keep Target as All Products, or pick the collections you sell on subscription. - Under Per-Discount Conditions on that discount, click Add Condition. Set Field to Item has subscription and Value to Yes.
- Click Add Discount Type again and enter
10in Percentage, with the same Target. - Under Per-Discount Conditions on this second discount, click Add Condition. Set Field to Item has subscription and Value to No.
- Click Add Discount Type, set Discount Type to Shipping Discount, and keep Free Shipping.
- Click Save discount.
A Shopify discount code holds one kind of discount, so with Shopify’s own codes this offer would take more than one code. In OneCode it’s one code with three parts.
Choose how many subscription orders get it
A code applies to the first subscription order only, unless you change it. To keep the 15% for the first few orders, use the Subscription recurring limit card near the bottom of the code’s settings page. It applies to the whole code:
- Tick Limit discount to specific recurring cycles.
- In Number of cycles, enter how many subscription orders get the discount.
3covers the first order and the next two renewals.1covers the first order only.0covers every renewal. - Click Save discount.
With 3, the customer above pays $25.50 for the coffee on each of their first three orders, and $30 from the fourth order on.

For more on renewals, see subscription discounts for the first few orders.
Other ways to build it
- 10% for everything, 15% for subscriptions: add a 10% product discount with no condition, and a 15% product discount with Item has subscription set to Yes. Subscription items qualify for both and get the one that saves more, 15%. They never get 25%.
- Nothing off subscriptions: add only the one-time discount with Item has subscription set to No under Per-Discount Conditions.

Things to check before you launch
- You need a subscription app to sell subscriptions. OneCode decides which items and orders get the discount, and the subscription app creates the orders.
- Preorders sold with a Shopify purchase option count as subscription items for Item has subscription. If you sell preorders that way, they get the subscription discount.
- Item has subscription is a Per-Discount Condition on product discounts. It isn’t available as a Global Condition.
- If your subscription app shows the one-time price as the compare-at price, subscription items count as sale items. That only matters if you add a sale item rule. See 20% off full price and 10% off sale items.
- A subscription with many payments counts as one use toward Maximum discount uses.
OneCode costs $9.90 USD every 30 days after a 7-day free trial, billed by Shopify. Install it from the Shopify App Store.
