Commit 24e5f581 by tetiana yaremko

cart session fixed

parent 5cd1c8e0
Showing with 2 additions and 2 deletions
......@@ -148,8 +148,8 @@ class Cart_model extends CI_Model
public function set_user_cart($email, $data) {
foreach ($data->rowid as $item ) {
if($this->exists_in_user_cart($item['id'], $email)) {
foreach ($data['rowid ']as $item ) {
if($this->exists_in_user_cart($item->id, $email)) {
$this->db->query("UPDATE user_cart set qty='$item->qty' where prod_id='$item->id'");
} else {
$user_cart= array(
......
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