Commit e2231c24 by tetiana yaremko

cart session fixed

parent bf05c9cb
......@@ -51,8 +51,8 @@ class Auth extends CI_Controller
$this->session->set_userdata($this->auth->get_data());
$this->session->set_userdata("logged_in", true);
$data=$this->cmodel->getAllFromCart();
$this->cmodel->set_user_cart($this->session->userdata('email'), $data);
//$data=$this->cmodel->getAllFromCart();
//$this->cmodel->set_user_cart($this->session->userdata('email'), $data);
if($user_role==1) {
......
......@@ -61,6 +61,8 @@ class Cart extends CI_Controller
array_push($new_cart, $cart);
}
//$this->cmodel->sentToUCart($new_cart);
......
......@@ -19,16 +19,8 @@ class Cart_model extends CI_Model
// $query = $this->db->get();
// return $query->result();
// }
// public function getAllFromCart()
// {
// foreach ($this->cart->contents() as $items) {
// $cart = array(
// 'id' => $items->id,
// 'qty' => $items->qty,
//
// );
// }
// }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment