CurrentShoppingCartStrategy Class |
Namespace: CMS.Ecommerce
public class CurrentShoppingCartStrategy : ICurrentShoppingCartStrategy
The CurrentShoppingCartStrategy type exposes the following members.
Name | Description | |
---|---|---|
CurrentShoppingCartStrategy |
Name | Description | |
---|---|---|
AnonymizeShoppingCart |
Removes personal information from the shopping cart.
| |
CartCanBeUsedOnSite |
Checks if given shopping cart is assigned to the site.
| |
ClearAddresses |
Removes information about addresses from the shopping cart.
| |
ClearCustomer |
Removes information about customer from the shopping cart.
| |
ClearDiscounts |
Removes information about customer from the shopping cart.
| |
ClearNote |
Removes information about note from the shopping cart.
| |
ClearPayment |
Removes information about payment from the shopping cart.
| |
ClearPrivateData |
Clears all data considered to be 'private' (i.e. customer, shipping option including addresses, payment option, discounts and note).
| |
ClearShipping |
Removes information about shipping from the shopping cart.
| |
PreferStoredCart |
Decides whether shopping cart is 'good enough' for user
or an older shopping cart stored in the system should be preferred.
| |
RefreshCart |
Ensures that ShoppingCartInfo does not contain invalid data.
| |
TakeOverCart |
Makes the ShoppingCartInfo owned by the user.
| |
UserCanTakeOverCart |
Checks if user can adopt shopping cart.
|
[assembly:RegisterImplementation(typeof(ICurrentShoppingCartStrategy), typeof(MyCurrentShoppingCartStrategy))] public class MyCurrentShoppingCartStrategy : CurrentShoppingCartStrategy { ... }