IShoppingServiceUpdateItemQuantity 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.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax 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.
Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown 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