I search through documents provided by Codeigniter for updating cart options value, but it only mention updating Cart value not option value.
I tried to update something like this.
Code:
foreach ($this->input->post() as $key => $value) {
$data = array(
'rowid' => $key,
'options' => array('color' => 'red', 'size' => 'xl')
);
$this->cart->update($data);
}
But didn't work out. I googled it but none of them worked for me.