Click or drag to resize
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.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
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: Boolean
See Also