Click or drag to resize
IShoppingCartRepositoryGetUsersCart Method
Finds the most recent shopping cart stored for the user on the specified site.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 10.0.0
Syntax
C#
ShoppingCartInfo GetUsersCart(
	UserInfo user,
	SiteInfoIdentifier site
)

Parameters

user
Type: CMS.MembershipUserInfo
The user to get the shopping cart for.
site
Type: CMS.DataEngineSiteInfoIdentifier
ID or code name of the site to look for cart.

Return Value

Type: ShoppingCartInfo
User's most recent shopping cart or null when not found.
Remarks
Returned shopping cart is populated with cart items.
See Also