MultiBuyDiscount Methods |
The MultiBuyDiscount type exposes the following members.
Name | Description | |
---|---|---|
![]() | AcceptsCoupon |
Indicates if given coupon code is suitable for this discount. Returns false if this discount has no codes assigned.
|
![]() | Apply |
Logs discount usage.
|
![]() | CalculateDiscount |
Calculates the discount value for given basePrice.
|
![]() | GetMissingProducts |
Returns IDs of SKUs which could be discounted if present in cart. Most important products go first.
|
![]() | IsApplicableOn |
Indicates if this discount is affecting the price of given cart item, i.e. this method returns true for items
discounted by this discount.
|
![]() | IsBasedOn |
Indicates if this discount is based on given cart item, i.e. this method returns true for items needed
to be in the cart to be eligible to get this discount.
|
![]() | PrioritizeItems |
Moves Y items to higher priorities in case of BXGY discount.
|