Click or drag to resize
MultiBuyDiscountsEvaluatorApplyDiscount Method
Applies discount to given number of unit of given item using.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
protected virtual void ApplyDiscount(
	IMultiBuyDiscount discount,
	MultiBuyItem itemToBeDiscounted,
	int units
)

Parameters

discount
Type: CMS.EcommerceIMultiBuyDiscount
Discount to be applied.
itemToBeDiscounted
Type: CMS.EcommerceMultiBuyItem
Cart item to apply discount on.
units
Type: SystemInt32
Number of unit to be discounted.
See Also