Line Limit
Understanding the line limit strategy
The line limit strategy helps you control how many items in a customer's cart can receive a discount when multiple items are eligible. You can choose between two strategies: First and Maximum.
First
strategyThis applies the discount to the first
n
eligible line items in the order they appear in Shopify. Example: If a discount is configured to apply to "First 2" items and there are 5 eligible line items, only the first 2 line items will get the discount.
Maximum
strategyThis applies the discount to the most expensive eligible items first. Example: If a discount is configured to apply to "Maximum 2" line items and there are 5 line eligible items in the user's cart, the 2 highest items sorted by the line price will get the discount.
Minimum
strategyThis applies the discount to the least expensive eligible items first. Example: If a discount applies to 5 eligible line items in the user's cart, the 2 lowest price line items sorted by the line price will get the discount.
Set up a Line Limit Strategy for your discount
Find the Flag selector (settings wheel) next to your discount
In the popup window that opens, check line limit strategy and click done



TLDR - why should I care?
Let's say you have a discount rule that is set up with a limit of to up to 3 line items in the cart, and the cart has 5 eligible line items for the config:
First Strategy: The discount will apply to the first 3 line items in the order they appear.
Maximum Strategy: The discount will apply to the 3 most expensive line items.
Minimum Strategy: The discount will apply to the 3 cheapest line items.
Why This Matters:
First Strategy: Useful if you just want to limit the number of applications of the discount without any sorting by the line cost.
Maximum Strategy: Useful if you want to maximize the discount value for the customer by applying it to the most expensive items.
Minimum Strategy: Useful if you want to incentivize the customer to purchase higher value items and increase AOV.
By understanding and using the line limit strategy, you can better manage how discounts are applied in your store, ensuring they align with your business goals.
You can setup a line limit on the fucntion level as well and not just on the discount / config level. This ensures that at all points the function will adhere to the line limit set on the global level
Last updated