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);


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.