Jump to content

Shopping Cart


gazalec

Recommended Posts

Hi There I was wondering what everyone though the best way to do a shopping cart was, I was thinking a temp. table for instance when they choose add to basket it adds to the table until they choose go to checkout and i was thinking take everything from the table then delete the table but i was wondering how i could identify the table uniquely so the user can have multiple orders, I was thinking of maybe a search such as the table name being the customer number and the date for example, and when the customer clicks on a product to add to the basket it checks if there is any table names customernumber+todays date and if there isn't create a new table.

But then i started thinking that would mean a customer could only make one purchase per day... well properly anyway, and what if they started ordering at 11:57pm and added a new product say after 12:01am then that would be a new table so any ideas would be appreciated

 

Thanks In Advance

Link to comment
Share on other sites

There are plenty of robust shopping carts out there already. Is this for learning purposes or you actually want to go commercial with it? If you're making one for a client, alls I can say is, you're better off using an existing solution, so that you don't have to provide constant support/updates.

Link to comment
Share on other sites

Well it was for both really, to find out how to do it and how it works, and to have the ability to create my own if I ever need to, or if I'm having a problem with one I could have more of an insight to what the problem might be

Link to comment
Share on other sites

Well it was for both really, to find out how to do it and how it works, and to have the ability to create my own if I ever need to, or if I'm having a problem with one I could have more of an insight to what the problem might be

 

Understandable...and I would (And have) code one for learning purposes...but definitely not to provide to a client. Why? Well, because with shop's already available that provide ready made modules and plugins for tons of different payment gateways, shipping modules, etc. And then providing updates with new themes and new plugins for newer features/payment gateways....I wouldn't want to keep troubleshooting or providing support. Let someone else do it. Why reinvent the wheel...unless I was coding the software to sell it as an ecommerce solution to the masses.

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.