Welcome Guest, Not a member yet? Register   Sign In
how can i remove item in shopping cart classs..
#1

[eluser]reka[/eluser]
how can i remove one item in shopping cart codeigniter. because if using $this->cart->destroy(); will remove all item..
#2

[eluser]JHackamack[/eluser]
From: http://ellislab.com/codeigniter/user-gui.../cart.html

If you set the quantity to 0 it will be removed
Code:
$data = array(
               'rowid' => 'b99ccdf16028f015540f341130b6d8ec',
               'qty'   => 0
            );

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




Theme © iAndrew 2016 - Forum software by © MyBB