Click or drag to resize
CurrentShoppingCartStrategyUserCanTakeOverCart Method
Checks if user can adopt shopping cart.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
public virtual bool UserCanTakeOverCart(
	ShoppingCartInfo cart,
	UserInfo user
)

Parameters

cart
Type: CMS.EcommerceShoppingCartInfo
Candidate shopping cart to be checked.
user
Type: CMS.MembershipUserInfo
Potential owner of the cart.

Return Value

Type: Boolean
True if given cart has no owner or the owner is anonymous.

Implements

ICurrentShoppingCartStrategyUserCanTakeOverCart(ShoppingCartInfo, UserInfo)
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when cart is null.
See Also