codeigniter CodeIgniter Shopping Cart Delete cart items


Example

By using rowid element you can delete an item from cart. you just have to set item's qty to 0

$deleteItem = array(
    'rowid' => 'b99ccdf16028f015540f341130b6d8ec',
    'qty'   => 0
);

$this->cart->update($data);

this will delete item with this rowid.