CODIGITOR.COM CODIGITOR.COM
$this->load->library('cart');
$this->load->library('cart');
$this->cart
$data = array(
'id' => 'sku_123ABC',
'qty' => 1,
'price' => 39.95,
'name' => 'T-Shirt',
'coupon' => 'XMAS-50OFF'
);
$this->cart->insert($data);