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: 9.0.0
Syntax public 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:
BooleanSee Also