Click or drag to resize
ICurrentShoppingCartStrategyAnonymizeShoppingCart Method
Removes personal information from the shopping cart.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 10.0.0
Syntax
C#
void AnonymizeShoppingCart(
	ShoppingCartInfo cart
)

Parameters

cart
Type: CMS.EcommerceShoppingCartInfo
Shopping cart which private data are cleared.
Remarks

This method is used when the current shopping was not created specifically for current user.

This situation occurs in the following situations:

  • User logs in. This means that cart was created for public user and now it is used for logged user.The shopping cart was found by identifier taken from the client (IShoppingCartClientStorage). This happens when the cache (IShoppingCartCache) expires and it is not guaranteed that cart belongs to different anonymous customer.

Implementation must set PrivateDataCleared to true.

See Also