Jump to content

Shopping Cart Session Storing Help Is Needed!


ipwnzphp

Recommended Posts

Hello, I need some with something i cant seem to figure out at all. I'm using sessions and im trying to make this shopping cart work at http://www.nightmaredesigns.com/previews/halifaxgrocery/view_cart.php what is going on is that i cant seem to figure a way to store the products in the cart with out storing them in the shopping cart database in mysql. I have the shopping cart table storing the id of the product than pulling the info using a session to retrieve that data for that product. Now i could put these in a array correct? I mean but once u go back and hit add to cart again it needs to see that it needs to make a new row and not over write what is already stored there. Any ideas?

Link to comment
Share on other sites

Newegg for instance uses a cookie to store shopping cart information.  Maybe go to newegg.com, add something to a cart then go to the folder your cookies are stored in C:\Documents and Settings\%username%\Cookies and see how they do.  If it works for them it should work for you.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.