I have a website which currently allows the user to purchase products. Its upto the admin to deliver the products for the quantity the customer has bought.
What I would like to do is have a feature which allows the user to add a product to their cart, thus decreasing the product count in the database by the quantity they are considering buying for around 15 minutes (well since it decreases the product quantity
it means the customer has not purchased the product at this stage so I i want to limit this to 15 mins meaning if they don't buy in 15 mins their cart is deleted and the product count is gone up again).
I'm not sure what would be the best way to approach this and mainly how to keep a live time and product count for each product added?
Go to the complete details ...