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

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 10.0.0
Syntax
C#
public virtual bool AcceptsCoupon(
	string couponCode,
	bool ignoreUseLimit
)

Parameters

couponCode
Type: System.String
Code to be checked
ignoreUseLimit
Type: System.Boolean
Indicates if use limitation is to be ignored.

Return Value

Type: Boolean

Implements

ICanUseDiscountCoupons.AcceptsCoupon(String, Boolean)
See Also