Click or drag to resize
MultiBuyDiscount Constructor (MultiBuyDiscountInfo, FuncDecimal, Decimal, String)
Creates a new instance of relative MultiBuyDiscount based on the specified MultiBuyDiscountInfo.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
public MultiBuyDiscount(
	MultiBuyDiscountInfo multiBuyDiscountInfo,
	Func<decimal, decimal> valueCalculator,
	string appliedCouponCode = null
)

Parameters

multiBuyDiscountInfo
Type: CMS.EcommerceMultiBuyDiscountInfo
MultiBuyDiscountInfo object to create instance for.
valueCalculator
Type: SystemFuncDecimal, Decimal
Service used to round the result.
appliedCouponCode (Optional)
Type: SystemString
Applied coupon code which.
See Also