Click or drag to resize
ShoppingServiceAddCouponCode Method
Applies the specified coupon code to the current shopping cart and evaluates the cart.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
public virtual bool AddCouponCode(
	string couponCode
)

Parameters

couponCode
Type: SystemString
Coupon code to apply.

Return Value

Type: Boolean
True if the couponCode is applied, false otherwise.

Implements

IShoppingServiceAddCouponCode(String)
Exceptions
ExceptionCondition
ArgumentExceptionThrown when couponCode is null or empty.
See Also