Commit bf05c9cb by tetiana yaremko

cart session fixed

parent 56c3bd06
Showing with 10 additions and 10 deletions
...@@ -19,16 +19,16 @@ class Cart_model extends CI_Model ...@@ -19,16 +19,16 @@ class Cart_model extends CI_Model
// $query = $this->db->get(); // $query = $this->db->get();
// return $query->result(); // return $query->result();
// } // }
public function getAllFromCart() // public function getAllFromCart()
{ // {
foreach ($this->cart->contents() as $items) { // foreach ($this->cart->contents() as $items) {
$cart = array( // $cart = array(
'id' => $items->id, // 'id' => $items->id,
'qty' => $items->qty, // '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