Click or drag to resize
CurrentShoppingCartStrategy.PreferStoredCart 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: 13.0.131
Syntax
C#
public virtual bool PreferStoredCart(
	ShoppingCartInfo cart,
	UserInfo user
)

Parameters

cart
Type: CMS.Ecommerce.ShoppingCartInfo
Candidate shopping cart to be checked. Null if no candidate cart found.
user
Type: CMS.Membership.UserInfo
The user whose preference is explored.

Return Value

Type: Boolean
True if cart is null or empty.

Implements

ICurrentShoppingCartStrategy.PreferStoredCart(ShoppingCartInfo, UserInfo)
See Also