Tony0930 wrote:
I am almost done developing this e-commerce site and my client just asked me to add a shopping cart. I have some templates, but I want to start from scratch, is there a specific way of starting to do it? What should I consider when building a shopping cart? |
If you are wanting to write your own then the first thing to think about is how you are going to be storing the customers order, this is done in an array.
When someone adds an item to there cart the array is updated, on checkout you gain more information on the customer, i.e postal/billing address etc.
Once you have all that it is time for the card details, you can use worldpay, protx or any other, I prefer SecPay because they have a call XML API that lets you take payment from your site without going off to a protx, worldpay type website.
Hope this is enough to get you started, ignore the other comments. We all have to start somewhere, life is not free so why should for your time be free.
All the best