Processing webshop orders
Currently I am busy with building my webshop. The proces for ordering a product is split up in 5 stages:
1) shopping cart
2) customer information
Now, I have troubles with not knowing when to proces what. Do I have to put the customer information at stage 2 in a session or to add it directly in the MySQL database? If putting it in a session, do I have to wait till stage 5 for adding it in the database? I am not sure what is the best.
An important note: the customer may choose for single order (and will never return to the shop) where he/she is not having an account or for regular consumer with an account. How to deal with this?
I hope you can help me with this.