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: 8.2.23
Syntax
C#
protected virtual void ApplyDiscount(
	IMultiBuyDiscount discount,
	ShoppingCartItemInfo itemToBeDiscounted,
	int units
)

Parameters

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