Jump to content

[SOLVED] does the customers cart hold stock?


Recommended Posts

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 it
Does 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

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

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

  • 2 years later...
  • 7 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...