shopping cart brainstorm

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

shopping cart brainstorm

Post by shiznatix »

ok so i MIGHT have this really huge contract to make a shopping cart for a wine company that wants to sell wines from france to estonia. the payment system is worked out already, the estonian banks are very good at that. what i need is some ideas on how to do it. things i want to try to avoid

-javascript
-cluttered windows
-more than 1 window

is this possible do you think? also i was thinking about saving the shopping cart. what i did looong time ago was if there was no cookie take the persons session id and save that as a cookie then store the cart under that id. you might be able to guess where there would be problems with that idea. what would be a better way? i am probably not going to "restore" the shopping cart on each return and just have a link to "restore cart" if there is a cookie set but how do i track different users. i need somthing that will work 99.99999% of the time.

also any really cool things you have seen in a cart that you wanna tell me about so i can maybe use the idea? any really uncool things that made you mad? any carts that have a really good example that i could go by? i wanna have a really good idea of what i wanna do before i get the contract so i can start work right away and be rich that much faster. hopefully i do get this job, i could sure go for some cheaper french wine *drinks another glass, literally*
User avatar
ambivalent
Forum Contributor
Posts: 173
Joined: Thu Apr 14, 2005 8:58 pm
Location: Toronto, ON

Post by ambivalent »

This O'Reilly book takes the reader through the creation of a basic "wine store". You can get the author's code and view examples here
Post Reply