Click or drag to resize
ICurrentShoppingCartStrategyPreferStoredCart Method
Decides whether shopping cart specified by cart is 'good enough' for user or an older shopping cart stored in the system should be preferred.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax
C#
bool PreferStoredCart(
	ShoppingCartInfo cart,
	UserInfo user
)

Parameters

cart
Type: CMS.EcommerceShoppingCartInfo
Candidate shopping cart to be checked. Null if no candidate cart found.
user
Type: CMS.MembershipUserInfo
The user whose preference is explored.

Return Value

Type: Boolean
True if any user's shopping cart stored in the system is more preferred than cart. Returns false if cart is good enough for user to be used for shopping.
See Also