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

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax
C#
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