I am using codeigniter cart class for my shopping cart project. I have number of items on the cart. Now I do have cart row id. Now what exactly i need to do is, need to remove the particular item from the cart not all the contents(Destroying cart).
$cartcontents = $this->cart->product_options($rowid);
and unseting all contents. but doesn't works out. Please do help you anybody have an idea. Thank You.
Create a remove button at view page and add row id with link. After that create a function and pass row id and put quantity 0 and pass that array in update function.
use this
If the quantity is set to zero, the item will be removed from the cart.
Here, set QTY = 0 then it will be removed.
Use "removeCartItem" function in your controller to do this...