Click or drag to resize
ShoppingCartInfoProviderSetOrder Method (ShoppingCartInfo, Boolean)
Creates or updates order based on the data of the specified shopping cart.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax
C#
public static void SetOrder(
	ShoppingCartInfo cartObj,
	bool generateInvoice
)

Parameters

cartObj
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
ExceptionCondition
InvalidOperationExceptionThrown when ShoppingCartCustomerID and/or ShoppingCartCurrencyID not set.
See Also