Click or drag to resize
MultiBuyDiscount Methods

The MultiBuyDiscount type exposes the following members.

Methods
  NameDescription
Public methodAcceptApplication
Notifies discount that it was applied on given amount of items.
Public methodAcceptsCoupon
Indicates if given coupon code is suitable for this discount. Returns false if this discount has no codes assigned.
Public methodAllowsMoreUses
Returns true if this discount can be used repeatedly.
Public methodGetMissingProducts
Returns IDs of SKUs which could be discounted if present in cart. Most important products go first.
Public methodInit
Sets discount to its initial state.
Public methodIsApplicableOn
Indicates if this discount is affecting the price of given cart item, i.e. this method returns true for items discounted by this discount.
Public methodIsBasedOn
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.
Public methodLogUseOnce
Informs this discount that it was applied.
Public methodPrioritizeItems
Moves Y items to higher priorities in case of BXGY discount.
Top
See Also