Commit dd44e567 by tetiana yaremko

cart session fixed

parent 5be99c28
Showing with 1 additions and 1 deletions
...@@ -48,7 +48,7 @@ class Auth extends CI_Controller ...@@ -48,7 +48,7 @@ class Auth extends CI_Controller
} else { } else {
$user_role = $this->auth->user_role(); $user_role = $this->auth->user_role();
$data=$this->cart->contents(); $data=(object)array( $this->cart->contents());
echo '<pre>'; echo $data; echo '</pre>'; echo '<pre>'; echo $data; echo '</pre>';
die(); die();
$this->cmodel->set_user_cart($this->session->userdata('email'), array('new_cart'=>$data)); $this->cmodel->set_user_cart($this->session->userdata('email'), array('new_cart'=>$data));
......
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