Global Line Limit Strategy
Last updated
Last updated
The Global Line Limit Strategy allows you to control the total number of items in a customer's cart that can receive a discount, regardless of individual discount configurations. This feature is particularly useful when you have multiple discount rules with varying line limits but want to set an overall cap on discounted items.
By default, the global line limit strategy is disabled (set to zero, i.e. infinite). When enabled, it overrides individual line limit strategies by applying discounts only to the first X eligible items across the entire cart. The system sorts items by line subtotal in ascending order when using the "First" strategy, ensuring that the least expensive eligible items receive the discount first.
Suppose you have two discount configurations:
Discount A: Applies to the first 2 eligible items.
Discount B: Applies to the first 3 eligible items.
A customer adds 6 eligible items to their cart. Without a global line limit, Discounts A and B would apply to their respective items, potentially discounting up to 5 items. However, if you set a global line limit of 3, only the first 3 eligible items (sorted by ascending line subtotal) will receive any discount, regardless of the individual discount configurations.
Implementing a global line limit strategy helps you manage discount applications more effectively, ensuring that promotions align with your business objectives and preventing excessive discounting across multiple configurations.