suppose there is a saved basket item and i loaded that saved basket item to the current shopping cart and there are 3 items available within the cart. i need to remove one item from the cart. how can i do that?
Hi,
you could use one of the basic Kentico ShoppingCartInfo.RemoveShoppingCartItem Methods
RemoveShoppingCartItem(Guid) or RemoveShoppingCartItem(Int32)
RemoveShoppingCartItem(Guid)
RemoveShoppingCartItem(Int32)
https://devnet.kentico.com/docs/9_0/api/html/Overload_CMS_Ecommerce_ShoppingCartInfo_RemoveShoppingCartItem.htm
Greets,
David
Hi David! Thanks For your help. and also i need to know do we need to remove that item from the object and database too? If so then what is the methods we can use that
Thanks Ramesh
This method will remove the row from the shoppingcart item database table as well.
Please, sign in to be able to submit a new answer.