MultiBuyDiscount MembersKentico 8.1 API Reference
The MultiBuyDiscount type exposes the following members.
Constructors

  NameDescription
Public methodMultiBuyDiscount
Create new instance of MultiBuyDiscount based on given MultiBuyDiscountInfo object.
Back to Top
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 methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodGetMissingProducts
Returns IDs of SKUs which could be discounted if present in cart. Most important products go first.
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
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.
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodPrioritizeItems
Moves Y items to higher priorities in case of BXGY discount.
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Back to Top
Extension Methods

  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Back to Top
Properties

  NameDescription
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 propertyDiscountName
Name of the multi buy discount.
Public propertyDiscountUsesCoupons
Indicates if discount is applicable only with discount coupon.
Public propertyIsFlat
True - discount value is fix, False - discount value is relative.
Public propertyValue
Discount value. Value is percentage of fix, based on value of IsFlat.
Back to Top
See Also