Click or drag to resize
ShoppingServiceCreateOrder Method
Validates and creates order from current shopping cart. If order creation was successful empties shopping cart. If order requires an user account, handles its creation. Also tracks order conversion, sends order notifications and logs purchase activities.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
public virtual OrderInfo CreateOrder()

Return Value

Type: OrderInfo
Returns the OrderInfo of newly created order.

Implements

IShoppingServiceCreateOrder
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown when validation fails, or when strict inventory management is enabled and trying to update inventory below zero to an item which doesn't allow so 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