Hi People,
I have a problem with stock...
For example: I have one product with 10 units..
I have two people in the same time trying buy 10 units...
The guy what have made the order before, get the product... but the second should not buy if I have zero or negative stock, in this case he cannot buy.
Have one place to set that, or I need create one code to check before create the order?
Developer forum
E-mail notifications
Check Stock Before Order
Replies
Hi George,
You can find some solutions and information here;
http://developer.dynamicweb-cms.com/forum/ecommerce-standard-features/addtocart-product-limit$1.aspx
We develop an ajax call to check stock status on every step
Best Regards,
Nuno
Thanks Nuno.
There is a new feature in 8.3 that is called "Reserved". So if a product has 2 items in stock and 3 different users adds them to cart, 3 is reserved. When the first and second user completes the cart, the stock goes to 0. When the 3rd user tries to complete the order, he will be stopped because the product is no longer in stock. This is configurable of course.
On a product when rendering, you then have a tag for stock and one for reserved. Then you can also avoid users adding products to cart that is in another cart. Of course user 1 can not complete the cart, releasing the product Again. The reserved state is time based and configurable.
Hope this helps, Nicolai
Hi Nicolai,
This is perfect. Basically just like an ERP system with multiple stores.
Looking really really forward to working with it.
Best Regards,
You must be logged in to post in the forum