Click or drag to resize
ShoppingServiceRemoveItemFromCart Method (ShoppingCartItemInfo)
Removes item specified by shoppingCartItemInfo from the current shopping cart. Also removes all children and bundle items from the cart, logs the activity and evaluates the cart.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
public virtual void RemoveItemFromCart(
	ShoppingCartItemInfo shoppingCartItemInfo
)

Parameters

shoppingCartItemInfo
Type: CMS.EcommerceShoppingCartItemInfo
Item to be removed.

Implements

IShoppingServiceRemoveItemFromCart(ShoppingCartItemInfo)
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when shoppingCartItemInfo is null.
Remarks
This method does nothing when the specified shoppingCartItemInfo is not in the cart.
See Also