codeigniter cart example
Example 1: codeigniter.com cart
$this->load->library('cart');
Example 2: codeigniter.com cart
$data = array(
'id' => 'sku_123ABC',
'qty' => 1,
'price' => 39.95,
'name' => 'T-Shirt',
'coupon' => 'XMAS-50OFF'
);
$this->cart->insert($data);