Click or drag to resize
IShoppingCartRepositoryGetCart Method (Int32)
Gets the ShoppingCartInfo by its ID.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 10.0.0
Syntax
C#
ShoppingCartInfo GetCart(
	int cartId
)

Parameters

cartId
Type: SystemInt32
ID of the ShoppingCartInfo.

Return Value

Type: ShoppingCartInfo
Shopping cart with requested ID or null when not found.
Remarks
Returned shopping cart is populated with cart items.
See Also