Click or drag to resize
IMultiBuyDiscount Methods

The IMultiBuyDiscount type exposes the following members.

Methods
  NameDescription
Public methodApply
Applies coupon code during order creation.
(Inherited from ICouponCodeApplication.)
Public methodCalculateDiscount
Calculates the discount value for given basePrice.
(Inherited from IDiscount.)
Public methodGetMissingProducts
Returns IDs of SKUs which could be discounted if present in cart. Most important products go first.
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 methodPrioritizeItems
Sorts cart items according to priority. Places items preferred to be discounted on the beginning of list.
Top
See Also