Click or drag to resize
MultiBuyDiscountsAutoAdderApplyDiscount 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#
public 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.

Implements

IMultiBuyDiscountsApplicatorApplyDiscount(IMultiBuyDiscount, MultiBuyItem, NullableInt32)
See Also