Lock Product Quantity On Product Pages

Hi, here is a design tweak that we feel is very necessary. I tried posting it on the uservoice, but the login seems to be broken. So I hope someone picks this up.
As our shop grew, we often have multiple people updating and editing products. With people ordering at the same time. This can create situations that makes the stock amount incorrect. Example:
Someone is editing the text of a product, keywords, etc. This takes 20 minutes.
At the same time, someone orders the product 3 times.
Now, the person editing the product hits save. The stock is now back at its old value, meaning there are 3 products too many in the system.
Since we also started to use cs-cart for wholesale, this problem grew much larger, because the quantities ordered are much higher and our stock is now sometimes way off.
I hope you can do something about this. Maybe an extra click to save the stock amount on the product page or so?
Thanks!

Hi, here is a design tweak that we feel is very necessary. I tried posting it on the uservoice, but the login seems to be broken. So I hope someone picks this up.
As our shop grew, we often have multiple people updating and editing products. With people ordering at the same time. This can create situations that makes the stock amount incorrect. Example:
Someone is editing the text of a product, keywords, etc. This takes 20 minutes.
At the same time, someone orders the product 3 times.
Now, the person editing the product hits save. The stock is now back at its old value, meaning there are 3 products too many in the system.
Since we also started to use cs-cart for wholesale, this problem grew much larger, because the quantities ordered are much higher and our stock is now sometimes way off.
I hope you can do something about this. Maybe an extra click to save the stock amount on the product page or so?
Thanks!

Hello!

As a temporary solution you can disable amount field on the product update page so it will be skipped while saving changes. But it is still possible to edit quantity by bulk edit or product import.

Yes, it is not possible out of the box. Additional custom development work is required to add additional permissions to managers

The best extension I can think of is to add a "update quantity" checkbox beside the quantity selector in the admin panel.

If it's not checked, then quantity is NOT updated. A General setting would determine the default of the checkbox.

It can be done as an addon (my_changes or separate). But long term, this is something that should be brought into the core since it would most likely (not looked in detail) require an override of the products:update_product_amount hook in views/products/update.tpl

I agree this should simply be added to the core exacly as suggested by tbirnseth, and I was hoping cs-cart would pick this up.

I agree this should simply be added to the core exacly as suggested by tbirnseth, and I was hoping cs-cart would pick this up.

Good luck

The best extension I can think of is to add a "update quantity" checkbox beside the quantity selector in the admin panel.

If it's not checked, then quantity is NOT updated. A General setting would determine the default of the checkbox.

It can be done as an addon (my_changes or separate). But long term, this is something that should be brought into the core since it would most likely (not looked in detail) require an override of the products:update_product_amount hook in views/products/update.tpl

The best thing would be to add some sort of javascript trigger which only sends the edited fields, so that just the edited fields are being updated in the database. This way these conflicts will be avoided on a large scale.

Furthermore, you could also add a popup with 'this product is already being edited'.