I'm trying to setup a cart system for a photography website. Ideally, there would be a set of photos, with a dropdown box to select various sizes, and a box to input the quantity. And ideally, people could add different sizes of the same photo and it would show up as a seperate product in the cart.
$_SESSION['cart'][$pid] = array ('qty' => $qty, 'product' => $product);
That code works, except will just override the previous product.
I need a unique session id or auto-incrementing ID so two products with the same print id can be added.
Thanks for any help in advance!