Click or drag to resize
CurrentShoppingCartStrategyPreferStoredCart Method
Decides whether shopping 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#
public virtual 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 cart is null or empty.

Implements

ICurrentShoppingCartStrategyPreferStoredCart(ShoppingCartInfo, UserInfo)
See Also