Hey you guys. I am currently working on a php shopping cart that will in the end link up to Google Checkout's API when the customer goes to check out. I want to be able to let customers select and buy multiple product with different options, and have those options transmit to Google so that we can see exactly what options they've asked for.
What I have in mind, is that they choose their options on the product page and add it to the cart. Then the cart will update according allowing them to shop more, or if they are ready to check out, to select their shipping and then hit the Google Check-out button.
Here's my issue, however. I have thought about using a database to keep track of orders and have use sessions to keep track of the customer and their cart, so the contents of the cart are not lost, where I can set an expiration of so much a time, that if they have to leave and come back, their cart isn't lost. With using databases, I do not want to have to go in and manually purge information on a daily basis. Also, how hard would it be to implement a db that has two tables (an orders table that keeps track of an order_id and total and an orders content that adds each type of product into that one, and sorted with the order_id that is passed to notate which cart it belongs to) and have those two tables be called upon to populate the cart when they go to view the cart.
Any help is greatly appreciated! Also, alternative suggestions on a better or easier way are acceptable.
What I have in mind, is that they choose their options on the product page and add it to the cart. Then the cart will update according allowing them to shop more, or if they are ready to check out, to select their shipping and then hit the Google Check-out button.
Here's my issue, however. I have thought about using a database to keep track of orders and have use sessions to keep track of the customer and their cart, so the contents of the cart are not lost, where I can set an expiration of so much a time, that if they have to leave and come back, their cart isn't lost. With using databases, I do not want to have to go in and manually purge information on a daily basis. Also, how hard would it be to implement a db that has two tables (an orders table that keeps track of an order_id and total and an orders content that adds each type of product into that one, and sorted with the order_id that is passed to notate which cart it belongs to) and have those two tables be called upon to populate the cart when they go to view the cart.
Any help is greatly appreciated! Also, alternative suggestions on a better or easier way are acceptable.