Logic Builder: Discount Conditions
Our advanced logic builder offers a number of conditions you can chain together to get very precise about who will receive which discounts.
Here's a breakdown of them all:
Click the thumbnail above to watch a video of our founder walking through the different conditions available.
Include/exclude customers

You can include or exclude customers from receiving a discount, using various customer eligibility options.
Include/exclude products

You can include or exclude products from receiving a discount, using various product eligibility options.
Check if specific products are in the cart

You can use this condition to only apply a discount to some items when specific other items are present in the cart.
You can use this for bundle offers, cross-selling, and more.
- For example, if a customer adds a camera to their cart, offer a discount on camera accessories such as lenses, tripods, or memory cards.
You can use all the product eligibility options available in the "Include/exclude specific products" condition.
Differently from the "Include/exclude specific products" condition, this condition does not require the current line item to be eligible for the selected product eligibility options.
Minimum/maximum purchase requirements

You can require a minimum/maximum quantity/subtotal for line items to be eligible for the discount, using purchase requirements options.
Include/exclude one-time purchases or subscriptions

You can make a discount apply to only one-time purchases or subscriptions using this condition.
Read this article to learn about the available options.
Number of orders
Use this condition for first-time or returning customer discounts. In its "Customer" dropdown, choose:
- Is a new customer (no previous orders): for first-order discounts. Guests count as new customers.
- Is a returning customer (1 or more orders): for repeat customers.
- Has a set number of orders...: to compare the customer's number of orders to any number, using the fields described in "Compare numbers" below.
Compare numbers

You can compare a number/quantity from the customer/order to a number known ahead of time, as an additional way to filter who gets a discount.
For first-time or returning customer discounts, the "Number of orders" condition above is simpler.
There are 3 fields you can use to decide the logic:
- Compare this number: Represents a number available at the time of the discount calculation.
- To this number: Represents another number available at the time of the discount calculation.
- Compare by: Which mathematical operation to use to compare the 2 numbers.
Options available for "Compare this number":
- Constant number
- Customer number of orders
- Shipping rate
- Total quantity (of a cart line variable)
- Total price (of a cart line variable)
- Number of uniques: Number of Uniques
- Number variable

Options available for "Compare by":
- Equals
- Not equal (≠)
- Less than (<)
- Less than or equal to (≤)
- Greater than (>)
- Greater than or equal to (≥)
Each step then describes the comparison in words, for example Customer number of orders is at least 1.
Examples
- 1st order discount: "Number of orders" condition, Customer: "Is a new customer (no previous orders)"
- Discount on the 3rd order for every customer: "Number of orders" condition, Customer: "Has a set number of orders...", then
Customer number of orders is exactly 2 - Discount for repeat customers: "Number of orders" condition, Customer: "Is a returning customer (1 or more orders)"
Calculate a number

For more advanced discounts, you can use dynamically compute number variables to use in comparisons.
Include/exclude markets

You can include or exclude customers from receiving a discount, using various market eligibility conditions.
Include/exclude retail locations

You can include or exclude customers from receiving a discount, using the Retail Location discount type.
Include/exclude B2B companies

You can include or exclude specific Shopify B2B companies from receiving a discount, using the B2B Company discount type.
Compare delivery address

You can create discounts based on shipping address fields. More info: Shipping Address Discounts
Have any feedback for us?
We want to hear about your experience with our app! Leave a review on the Shopify App Store.
Updated on: 19/11/2026
Thank you!
