Click or drag to resize
ICurrentShoppingCartServiceGetCurrentShoppingCart Method
Finds the most suitable shopping cart for given user. Creates and initializes new one when no cart found.

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

Parameters

user
Type: CMS.MembershipUserInfo
User to get current shopping cart for.
site
Type: CMS.DataEngineSiteInfoIdentifier
ID or the codename of the site.

Return Value

Type: ShoppingCartInfo
Visitor's current shopping cart.
See Also