Welcome Guest, Not a member yet? Register   Sign In
Cart doesn't add another item


I've added one item to Cart, but another one doesn't want to get added.

Function that takes ID of item in database and adds it to cart is here:
function pridat($id)
  If ($query->num_rows==0) return false;
  $data = array(
               'id'      => $produkt->id_produkty,
               'qty'     => 1,
               'price'   => $produkt->cena_vysledna,
               'name'    => $produkt->nazov,

  return true;

Of course, I do not try to add the same item twice. It's different item with different id.

database is setup - ci_sessions is running in DB, also the config is setup on TRUE for database for session.. I am not sure where the mistake is Sad

solved, I am also using diacritics, had to comment line in cart.php ^ ^ I wonder why this isn't in documentation, ...

Theme © iAndrew 2016 - Forum software by © MyBB