[eluser]ludo31[/eluser]
the problem is may be in your array $newItem
Code:
//Create an array of product details
$newItem = array(
'id' => $items['id'],
'name' => $items['name'],
'qty' => $items['qty'],
'price' => number_format($newPrice, 2),
'supplier' => $items['supplier'],
'coupon' => $coupon,
'full_price' => $items['price'],
'type' => $items['type']
);
try to make it like that :
Code:
$data = array(
'id' => $this->uri->segment(5),
'qty' => 1,
'price' => $this->uri->segment(6),
'name' => $this->uri->segment(7),
'options' => array('quantite' => $quantif)
);
$this->cart->insert($data);
id qty price name is required : and the rest we take it in options !!