Click or drag to resize
IMultiBuyDiscount Interface
Interface for discounts in form: "Buy N units of these products... and get M unit of these products for free".

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax
C#
public interface IMultiBuyDiscount : IDiscount, 
	ICouponCodeApplication

The IMultiBuyDiscount type exposes the following members.

Properties
  NameDescription
Public propertyAppliedCouponCode
Applied coupon code.
(Inherited from IDiscount.)
Public propertyApplyFurtherDiscounts
Indicates if further discounts are to be applied if this discount applies.
Public propertyApplyOnUnitsCount
The number of discounted units.
Public propertyAutoAddEnabled
Indicates if product is added to cart automatically, the system adds product to shopping cart only when the discount is percentage and set 100 % off.
Public propertyBasedOnUnitsCount
The number of products needed to enable this discount.
Public propertyDiscountGuid
Unique identifier of the discount.
Public propertyDiscountName
Gets the display name of the discount.
(Inherited from IDiscount.)
Public propertyMaxApplication
Maximum number of possible usages of the discount. Zero or negative value is representing an unlimited application count.
Top
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