Click or drag to resize
ShoppingCartInfoProviderSetShoppingCartItemInternal Method
Adds the product (and its product options) specified in the itemParams to the specified cart object. If such product configuration already exists in the shopping cart, only the CartItemUnits property is increased by Quantity. The added/updated shopping cart item is returned.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
protected virtual ShoppingCartItemInfo SetShoppingCartItemInternal(
	ShoppingCartInfo cart,
	ShoppingCartItemParameters itemParams
)

Parameters

cart
Type: CMS.EcommerceShoppingCartInfo
Shopping cart
itemParams
Type: CMS.EcommerceShoppingCartItemParameters
Parameters of the shopping cart item which should be used to perform the adding or updating.

Return Value

Type: ShoppingCartItemInfo
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when cart or itemParams are null.
ArgumentOutOfRangeExceptionThrown when itemParams specify a non-positive SKUID.
See Also