IShoppingServiceAddItemToCart Method (Int32, Int32) |
Namespace: CMS.Ecommerce
ShoppingCartItemInfo AddItemToCart( int skuId, int quantity )
Exception | Condition |
---|---|
InvalidOperationException | Thrown when skuId specifies a product from a different site than current shopping cart belongs to. |
The method does nothing when quantity is less than 1 and returns null.
This override is effectively the same as encapsulating given arguments in a new ShoppingCartItemParameters object and calling AddItemToCart(ShoppingCartItemParameters).