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.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntaxpublic 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:
BooleanReturns true if all ordered items were successfully added to cart.
See Also