Xperience 13 API Reference
Xperience 13 API Reference
Namespaces
CMS Namespaces
CMS.Ecommerce Namespaces
CMS.Ecommerce
ShoppingService Class
ShoppingService Methods
AddCouponCode Method
AddItemToCart Method
CalculateShippingOptionPrice Method
ClearShippingOptionIfNotShippable Method
ClearShippingOptionIfNotShippableInternal 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
SetCustomer Method
Sets the given
customer
to the current shopping cart and persists changes in the database.
Namespace:
CMS.Ecommerce
Assembly:
CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
Copy
public
virtual
void
SetCustomer
(
CustomerInfo
customer
)
Parameters
customer
Type:
CMS.Ecommerce
CustomerInfo
Customer to be set.
Implements
IShoppingService
SetCustomer(CustomerInfo)
Exceptions
Exception
Condition
ArgumentNullException
Thrown when
customer
is null.
See Also
Reference
ShoppingService Class
CMS.Ecommerce Namespace
ShoppingService
GetCurrentCustomer
CustomerHelper
MapToCustomer(UserInfo)
Copyright (c) 2023 Kentico Software
Send comments on this topic to
support@kentico.com