Click or drag to resize
ShoppingServiceUpdateItemQuantity Method (Int32, Int32)
Updates the quantity of a shopping cart item specified by itemId 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: 13.0.131
Syntax
C#
public virtual void UpdateItemQuantity(
	int itemId,
	int quantity
)

Parameters

itemId
Type: SystemInt32
ID of the shopping cart item.
quantity
Type: SystemInt32
New number of the product units.

Implements

IShoppingServiceUpdateItemQuantity(Int32, Int32)
Remarks
This method does nothing when quantity less than zero or item with the specified itemId is not in the cart.
See Also