Click or drag to resize
ShoppingServiceUpdateItemQuantity Method (ShoppingCartItemInfo, Int32)
Updates the quantity of a shopping cart item specified by shoppingCartItemInfo to quantity. Logs the activity resulting from the actual amount of items added or removed and evaluates the cart.

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

Parameters

shoppingCartItemInfo
Type: CMS.EcommerceShoppingCartItemInfo
Item the quantity of which is to be changed.
quantity
Type: SystemInt32
New number of the product units.

Implements

IShoppingServiceUpdateItemQuantity(ShoppingCartItemInfo, Int32)
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when shoppingCartItemInfo is null.
Remarks
This method does nothing when quantity less than zero or the specified shoppingCartItemInfo is not in the cart.
See Also