crunch Posted June 22, 2010 Share Posted June 22, 2010 Just a question on how the cart functionality works....When someone creates a cart, but doesn't order anything and leaves the site - then when they return their cart is still available with all the products they chose from the previous visit.So i have two questions:How long does this cart stay 'active' for? ie how long can they leave it and still come back to itDoes an item being in a cart 'hold' one from the stock value?Im worried that if I only have 5 items, and 5 people put one in a cart without buying it, that it will leave zero items available if a genuine buyer comes along.Thanks Link to comment Share on other sites More sharing options...
rocky Posted June 22, 2010 Share Posted June 22, 2010 You don't have to worry. When a customer adds a product to a cart, it isn't reserved for that customer. The product continues to be available for other customers until a customer actually completes an order, then the stock is subtracted. The customer doesn't haven't to actually pay for the order though, only complete it. Link to comment Share on other sites More sharing options...
crunch Posted June 22, 2010 Author Share Posted June 22, 2010 ah great! i suspected this was the case, but i wanted to be sure!!Do you know how long the cart persists for? Is it forever, or until emptied? Link to comment Share on other sites More sharing options...
rocky Posted June 22, 2010 Share Posted June 22, 2010 The cart itself is stored in the database forever, but I think the customer will lose the cart when their cookie is deleted or expires after 20 days. You can change the numbers of seconds before the cookie expires on line 50 of classes/Cookie.php. Link to comment Share on other sites More sharing options...
crunch Posted June 22, 2010 Author Share Posted June 22, 2010 awesome - thanks for the quick response! Link to comment Share on other sites More sharing options...
rocky Posted June 22, 2010 Share Posted June 22, 2010 You're welcome. If your issue is resolved, please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
jsmrajni Posted February 26, 2013 Share Posted February 26, 2013 please help me, my cart block and order history page show only one product at one time instead of multiple. Please reply ASAP. my prestashop version is 1.5.3.1 Link to comment Share on other sites More sharing options...
akshat Posted October 7, 2013 Share Posted October 7, 2013 i am facing the problem in which the cart resets itself when a client signed off any idea how this can be solved???? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now