ShoppingCartInfoProviderSetOrder Method (ShoppingCartInfo, Boolean) |
Creates or updates order based on the data of the specified shopping cart.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax public static void SetOrder(
ShoppingCartInfo cart,
bool generateInvoice
)
Parameters
- cart
- Type: CMS.EcommerceShoppingCartInfo
Shopping cart data - generateInvoice
- Type: SystemBoolean
Indicates if new invoice should be generated from the new order data. It is True by default.
Exceptions Exception | Condition |
---|
InvalidOperationException |
Thrown when ShoppingCartCustomerID and/or ShoppingCartCurrencyID not set,
or when strict inventory management is enabled and trying to update inventory below zero to an item which doesn't allow so (SKUSellOnlyAvailable is true).
|
See Also