Click or drag to resize
ICurrentShoppingCartStrategyUserCanTakeOverCart Method
Checks if user can adopt shopping cart specified by cart.

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

Parameters

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

Return Value

Type: Boolean
True if given cart can be taken over by user.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when cart is null.
See Also