Kentico 12 Service Pack API Reference
Kentico 12 Service Pack API Reference
Namespaces
CMS Namespaces
CMS.Ecommerce Namespaces
CMS.Ecommerce
ShoppingService Class
ShoppingService Methods
AddCouponCode Method
AddItemToCart Method
CalculateShippingOptionPrice Method
CreateOrder Method
GetBillingAddress Method
GetCurrentContactId Method
GetCurrentCustomer Method
GetCurrentShoppingCart Method
GetPaymentOption Method
GetShippingAddress Method
GetShippingOption Method
LogProductAddedToCartActivity Method
LogProductRemovedFromCartActivity Method
LogPurchaseActivities Method
RemoveAllItemsFromCart Method
RemoveCouponCode Method
RemoveItemFromCart Method
SaveCart Method
SendOrderNotifications Method
SetAddress Method
SetBillingAddress Method
SetBillingAddressInternal Method
SetCartItem Method
SetCustomer Method
SetCustomerInternal Method
SetPaymentOption Method
SetPaymentOptionInternal Method
SetShippingAddress Method
SetShippingAddressInternal Method
SetShippingOption Method
SetShippingOptionInternal Method
TrackOrderConversion Method
UpdateItemQuantity Method
ValidateAddItemToCart Method
ValidateCreateOrder Method
ValidateSetBillingAddress Method
ValidateSetPaymentOption Method
ValidateSetShippingAddress Method
ValidateShippingOption Method
ValidateShoppingCart Method
ShoppingService
AddCouponCode 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#
Copy
public
virtual
bool
AddCouponCode
(
string
couponCode
)
Parameters
couponCode
Type:
System
String
Coupon code to apply.
Return Value
Type:
Boolean
True if the
couponCode
is applied, false otherwise.
Implements
IShoppingService
AddCouponCode(String)
Exceptions
Exception
Condition
ArgumentException
Thrown when
couponCode
is null or empty.
See Also
Reference
ShoppingService Class
CMS.Ecommerce Namespace
ShoppingCartInfo
Evaluate
Copyright (c) 2019 Kentico Software
Send comments on this topic to
support@kentico.com