Help me to sort out this issue please

ramesh perera asked on February 2, 2016 09:16

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?

Recent Answers


David te Kloese answered on February 2, 2016 11:31

Hi,

you could use one of the basic Kentico ShoppingCartInfo.RemoveShoppingCartItem Methods

RemoveShoppingCartItem(Guid) or RemoveShoppingCartItem(Int32)

https://devnet.kentico.com/docs/9_0/api/html/Overload_CMS_Ecommerce_ShoppingCartInfo_RemoveShoppingCartItem.htm

Greets,

David

1 votesVote for this answer Mark as a Correct answer

ramesh perera answered on February 2, 2016 11:34

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

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on February 2, 2016 12:25

Hi,

This method will remove the row from the shoppingcart item database table as well.

Greets,

David

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.