Click or drag to resize
BaseCouponCodeInfoProviderTInfo, TProviderGetCouponCodeUseCount Method
Gets info about how many coupons are available in specific discount and how many of them were already used.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
protected ObjectQuery GetCouponCodeUseCount(
	IEnumerable<int> discountIDs,
	string useCountColumn,
	string useLimitColumn
)

Parameters

discountIDs
Type: System.Collections.GenericIEnumerableInt32
IDs of discounts to get coupon counts for. Use null for all relevant discounts.
useCountColumn
Type: SystemString
Name of column containing count of already executed redemptions.
useLimitColumn
Type: SystemString
Name of column containing count of redemption limit.

Return Value

Type: ObjectQuery
Remarks
Returns ObjectQuery with one table containing columns: discount ID, Uses, UnlimitedCodeCount and Limit.
See Also