ShoppingCartInfoProviderUpdateShoppingCartFromOrder Method |
Updates shopping cart with shopping cart from order. If such product configuration already exists in the shopping cart, only its quantity is updated.
Returns true if all ordered items were successfully added to cart.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntaxpublic static bool UpdateShoppingCartFromOrder(
ShoppingCartInfo cart,
int orderID
)
Parameters
- cart
- Type: CMS.EcommerceShoppingCartInfo
Shopping cart - orderID
- Type: SystemInt32
ID of order which should be added to shopping cart.
Return Value
Type:
Boolean
See Also