Click or drag to resize
MultiBuyDiscountInfoProviderAcceptsCoupon Method
Indicates if given coupon code is suitable for discount. Returns false if discount has no codes assigned.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
public static bool AcceptsCoupon(
	MultiBuyDiscountInfo discount,
	string couponCode,
	bool ignoreUseLimit
)

Parameters

discount
Type: CMS.EcommerceMultiBuyDiscountInfo
The discount.
couponCode
Type: SystemString
Code to be checked
ignoreUseLimit
Type: SystemBoolean
Indicates if use limitation is to be ignored.

Return Value

Type: Boolean
See Also