Approaching discounts are calculated on the basis of a DiscountPlan instead of a LineItemCtnr itself. When one of PromotionMgr.getDiscounts(LineItemCtnr) or PromotionMgr.getDiscounts(LineItemCtnr, PromotionPlan) is called, the promotions engine calculates the discounts the LineItemCtnr receives based on the promotions in context, and also tries to determine the discounts the LineItemCtnr would receive if additional merchandise were added. DiscountPlan provides different methods to retrieve this approaching discount info. Merchants can use these fine-grained methods to display information about approaching order discounts on the cart page, and approaching shipping discounts on the shipping method page during checkout, for example.
The merchant may include or exclude individual promotions from being included in this list, and define distance thresholds when configuring their promotions.
getConditionThreshold().subtract(getMerchandiseValue())
getConditionThreshold().subtract(getMerchandiseValue())
getConditionThreshold().subtract(getMerchandiseValue())