Click or drag to resize
MultiBuyDiscountsEvaluator Methods

The MultiBuyDiscountsEvaluator type exposes the following members.

Methods
  NameDescription
Protected methodApplyDiscount
Applies discount to given number of unit of given item using.
Protected methodCanBaseDiscountOn
Checks if given item can be used to fulfill discounts conditions.
Protected methodCanBeDiscounted
Checks if given item can be discounted using given discount.
Public methodEvaluateDiscounts
Evaluates given discounts and applies matching ones to corresponding cart items.
Protected methodFindItemsToBaseDiscountOn
Finds items satisfying given discounts conditions.
Protected methodFindItemsToBeDiscounted
Finds items to be discounted with given discount based on given items. Returns true when at least one item was found.
Protected methodGetUnusedNonFreeUnits
Returns the number of unit not used as base for any discount nor discounted.
Protected methodPrepareItemsForDiscount
Ensures that PrioritizedItems list is ready for application of given discount.
Protected methodRememberUsedItems
Remembers that given items in given number of units were used for given discount.
Protected methodReset
Resets evaluator to its initial state.
Top
See Also