The MultiBuyDiscount type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
| Name | Description | |
|---|---|---|
| MultiBuyDiscount |
Create new instance of MultiBuyDiscount based on given MultiBuyDiscountInfo object.
|
Methods
| Name | Description | |
|---|---|---|
| AcceptApplication |
Notifies discount that it was applied on given amount of items.
| |
| AcceptsCoupon |
Indicates if given coupon code is suitable for this discount. Returns false if this discount has no codes assigned.
| |
| AllowsMoreUses |
Returns true if this discount can be used repeatedly.
| |
| (Inherited from | ||
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from | ||
Serves as a hash function for a particular type. (Inherited from | ||
| GetMissingProducts |
Returns IDs of SKUs which could be discounted if present in cart. Most important products go first.
| |
Gets the (Inherited from | ||
| Init |
Sets discount to its initial state.
| |
| 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.
| |
| LogUseOnce |
Informs this discount that it was applied.
| |
Creates a shallow copy of the current (Inherited from | ||
| PrioritizeItems |
Moves Y items to higher priorities in case of BXGY discount.
| |
Returns a string that represents the current object. (Inherited from |
Extension Methods
| Name | Description | |
|---|---|---|
| AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
| GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
| GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
| ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Properties
| Name | Description | |
|---|---|---|
| ApplyFurtherDiscounts |
Indicates if further discounts are to be applied if this discount applies.
| |
| ApplyOnUnitsCount |
The number of discounted units.
| |
| AutoAddEnabled |
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.
| |
| BasedOnUnitsCount |
The number of products needed to enable this discount.
| |
| DiscountName |
Name of the multi buy discount.
| |
| DiscountUsesCoupons |
Indicates if discount is applicable only with discount coupon.
| |
| IsFlat |
True - discount value is fix, False - discount value is relative.
| |
| Value |
Discount value. Value is percentage of fix, based on value of IsFlat.
|
See Also