Hi guys... and gals,
I'm currently working on a project that requires a shopping cart. I have not designed or coded a bespoke solution to the extent of something similar to paypal or another shopping cart provider before but I'm a confident PHP programmer although no expert and learning all the time.
What I would like to ask is: Should the cart contents be managed by session id or is it viable to use a database to store the customer's cart contents?
I have previously created an internal admin area where employees can enter products into a cart and the details were stored in a table. Is this a system that would work for an online store open to the public? Otherwise, could you point me in the direction of any helpful articles or tutorials that can help me produce what I need?
The cart will not be making payments but a third-party payment system will be used to handle the transactions. Hence why I ask about storing the cart contents in a table rather than in sessions.
Looking through a tutorial using sessions brings up another question, sessions and rewritten urls. I intend to rewrite the urls, for SEO and was wondering if its possible to mask the session id in the url?
Appreciated as always.