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: 10.0.0
Syntax
C#
public class MultiBuyDiscountsAutoAdder : IMultiBuyDiscountsApplicator

The MultiBuyDiscountsAutoAdder type exposes the following members.

Constructors
  NameDescription
Public methodMultiBuyDiscountsAutoAdder
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
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
See Also