Click or drag to resize
ShoppingCartInfoProviderCopyShoppingCartItems Method
Updates destination shopping cart with source shopping cart.

If such product configuration already exists in the shopping cart, only its quantity is updated.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
public static bool CopyShoppingCartItems(
	ShoppingCartInfo sourceCart,
	ShoppingCartInfo destinationCart
)

Parameters

sourceCart
Type: CMS.EcommerceShoppingCartInfo
Original shopping cart
destinationCart
Type: CMS.EcommerceShoppingCartInfo
The cart where to copy items

Return Value

Type: Boolean
Returns true if all ordered items were successfully added to cart.
See Also