MultiBuyCouponCodeInfoProviderCreateCoupon Method |
Creates and saves new coupon for specified discount.
NOTE: The uniqueness is not checked.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax public static MultiBuyCouponCodeInfo CreateCoupon(
MultiBuyDiscountInfo discount,
string code,
int numberOfUses
)
Parameters
- discount
- Type: CMS.EcommerceMultiBuyDiscountInfo
The discount. - code
- Type: SystemString
The code. - numberOfUses
- Type: SystemInt32
The number of uses.
Return Value
Type:
MultiBuyCouponCodeInfoSee Also