Jump to content

E-commerce site advice


graham23s

Recommended Posts

Hi Guys,

 

i am about to start my first e-commerce type site the structure is up just testing a few things out, im a bit unsure about the procedute to add to cart etc i'm thinking each product has an id so if you want to add to basket it would be something like:

 

<a href="product.php?id=1"><img src="images/addtobasket.jpg"></a>

 

THEN insert the product id into the database along with the users id would that be a step in the right direction?

 

cheers guys

 

Graham

Link to comment
Share on other sites

I think that really depends on you.  I think Amazon stores them, which I don't like, because for some of their stuff you have to add to cart to see the price.  And then later when I come back to actually buy something, that other item is still in my basket.  If you don't pay attention, you can buy more than what you really want.

Link to comment
Share on other sites

Cheers guys, what would be the best way? store the items so when the user returns to the site the are still in the cart do you think?

 

cheers

 

Graham

 

Maybe that would be the best way. But it depends on what are your needs. I have developed an e-commerce where I'm leaving everything in the basket until checkout, so user has some time to think through if that is the complete order and when he want's to send it.

Link to comment
Share on other sites

that wouldn't be typical, but you could do that with cookies. sessions save for 24 minutes i think, and usually people don't leave a site and come back 25 minutes later expecting the stuff that they added to a cart to still be there. or else you could use your database to store stuff from the cart but i personally don't think that is the way to go.

Link to comment
Share on other sites

Yup, that's right!

 

But I'm deleting all the records from database where I had no activites for Last 7 days. That's how I'm keeping the database clean. Also a lot of my users are putting things in the basket through the week, so this proved to be the perfect way. At least in my case.

 

Again, it depeneds on the purpose!

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.