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

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

Parameters

discount
Type: CMS.Ecommerce.IMultiBuyDiscount
Discount to be applied.
itemToBeDiscounted
Type: CMS.Ecommerce.ShoppingCartItemInfo
Cart item to apply discount on.
units
Type: System.Int32
Number of unit to be discounted.
See Also