IShoppingServiceAddCouponCode Method |
Applies the specified coupon code to the current shopping cart and evaluates the cart.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax bool AddCouponCode(
string couponCode
)
Parameters
- couponCode
- Type: SystemString
Coupon code to apply.
Return Value
Type:
BooleanTrue if the
couponCode is applied, false otherwise.
Exceptions Exception | Condition |
---|
ArgumentException | Thrown when couponCode is null or empty. |
See Also