Click or drag to resize
MultiBuyDiscountsApplicator Class
Class applying discount on given shopping cart items.
Inheritance Hierarchy
SystemObject
  CMS.EcommerceMultiBuyDiscountsApplicator

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
public class MultiBuyDiscountsApplicator : IMultiBuyDiscountsApplicator

The MultiBuyDiscountsApplicator type exposes the following members.

Constructors
Methods
  NameDescription
Public methodAcceptsMissedDiscount
Notifies the applicator that discount was nearly applied. It could be applied on given products if present in cart.
Public methodApplyDiscount
Applies discount to given number of unit of given item.
Protected methodGetDiscountsSummary
Returns list of discount applications.
Protected methodGetSavings
Returns discount saving for particular item.
Public methodReset
Resets applicator to its initial state.
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.)
Top
Properties
  NameDescription
Protected propertyDiscountApplications
Dictionary of multibuy discounts application [Discount -> [CartItem -> DiscountedUnitsCount]]. Key is applied discount and value is dictionary with discounted cart items as keys and discounted units count as value.
Top
See Also