AddItemsToCart Method

Adds the specified items to the cart.

Namespace:  Microsoft.Dynamics.Commerce.Runtime.Client
Assembly:  Microsoft.Dynamics.Commerce.Runtime.Client (in Microsoft.Dynamics.Commerce.Runtime.Client.dll)

public Cart AddItemsToCart(
	string cartId,
	string customerAccountNumber,
	IEnumerable<CartLineData> cartLineData,
	CalculationModes modes
)

Return Value

Type: Microsoft.Dynamics.Commerce.Runtime.DataModel.Cart
The updated cart.

Community Additions

Show: