[eluser]NachoLabs[/eluser]
Code:
$this->db->where('id',$this->input->post('id'));
$q = $this->db->get('items')->row();
$item = array(
'id' => (string) $q->id,
'qty' => (int) 1,
'price' => (float) $q->precio,
'name' => (string) $q->nombre);
$this->cart->insert($item);
This is not working, the cart remains empty every time. Why?