[eluser]Sezgin[/eluser]
Hi All!
I need your help, I am new codeigniter programmer and I have problems with updating my cart.
The method that I use for update is this:
function updateCart( )
{
$rowid = $this->input->post('rowid');
$qty = $this->input->post('qty');
$data = array(
'rowid' => $rowid,
'qty' => $qty
);
$this->cart->update( $data );
redirect( 'cart/' );
}
//-----------------------------------------------
And here is the view part that is used from the updateCart:
echo form_hidden( 'qty' , $item['qty'] );
$data = array(
'name' => 'qty',
'value' => $item['qty'],
'maxlength' => '2',
'size' => '1'
);
echo form_input( $data );
echo form_hidden( 'rowid' , $item['rowid'] );
echo form_submit( 'rowid' , 'Update your Cart' );
//------------------------------------------------------------
I consider that the problem is above. I appriciate your help. Thank you.