Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Ecommerce: How do I update the cart item quantity using API? View modes: 
User avatar
Member
Member
Halim - 6/23/2009 4:16:26 AM
   
Ecommerce: How do I update the cart item quantity using API?
Hi,

Basically, I have a flash shopping cart that needs to be integrated with the ecommerce. I managed to create a shopping cart object and also managed to add items to it but I need some help on how to update the cart item quantity using API. Anybody?

Thanks.

Regards,
Halim Dahlan

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/30/2009 7:37:49 AM
   
RE:Ecommerce: How do I update the cart item quantity using API?
Hi,

You can get the array list collection of the current shopping cart by using CMS.Ecommerce.ECommerceContext.CurrentShoppingCart.CartItems. So you can update this array list - its count or edit the items by index.

Or, you can also use this ECommerceContext.CurrentShoppingCart.GetShoppingCartItemInfo().CartItemUnits

I hope it will help.

Best Regards,
Juraj Ondrus