Commit 6ca79895 by tetiana yaremko

cart session fixed

parent 24e5f581
Showing with 1 additions and 1 deletions
......@@ -148,7 +148,7 @@ class Cart_model extends CI_Model
public function set_user_cart($email, $data) {
foreach ($data['rowid ']as $item ) {
foreach ($data as $items=>$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 {
......
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