Click or drag to resize
MultiBuyDiscountsAutoAdder Class
Class calculating missed discount opportunities and adding discounted items to the shopping cart automatically.
Inheritance Hierarchy
SystemObject
  CMS.EcommerceMultiBuyDiscountsAutoAdder

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

The MultiBuyDiscountsAutoAdder 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 methodProductCanBeAutoAdded
Checks if product does not have options and is available on stock if stock availability is required.
Public methodReset
Resets auto adder 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
Public propertyItems
Cart items to find auto add triggers.
Public propertyProductsToBeAutoAdded
Dictionary with products which could be added to the shopping cart for free in format [SKUID, number of its units].
Top
See Also