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: 11.0.0
Syntax
C#
void ApplyDiscount(
	IMultiBuyDiscount discount,
	MultiBuyItem itemToBeDiscounted,
	Nullable<int> units = null
)

Parameters

discount
Type: CMS.EcommerceIMultiBuyDiscount
Discount to be applied.
itemToBeDiscounted
Type: CMS.EcommerceMultiBuyItem
Cart item to apply discount on.
units (Optional)
Type: SystemNullableInt32
Number of unit to be discounted. Can be used to override value from itemToBeDiscounted (Units).
See Also