IShoppingServiceAddItemToCart Method (ShoppingCartItemParameters) |
Adds an item to the current shopping cart and logs the activity. Saves the shopping cart if it has not been saved yet.
If an item in such configuration is already present in the cart, its quantity is increased by
Quantity.
Saves all product options and bundle items after adding and evaluates the cart.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown when itemParameters is null. |
InvalidOperationException | Thrown when itemParameters specify a product's SKUID from a different site than current shopping cart belongs to. |
Remarks
The method does nothing when
Quantity is less than 1 and returns null.
See Also