Click or drag to resize
ShoppingService.UpdateItemQuantity 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: System.Int32
ID of the shopping cart item.
quantity
Type: System.Int32
New number of the product units.

Implements

IShoppingService.UpdateItemQuantity(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