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
// $query = $this->db->get();
// return $query->result();
// }
public function getAllFromCart()
{
foreach ($this->cart->contents() as $items) {
$cart = array(
'id' => $items->id,
'qty' => $items->qty,
);
}
}
// 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