How can I set a maximum order quantity for all products?

Hi,

in our shop want to limit the maximum order quantity to 1.000 for all products we have.

Is there a “quick and dirty” possibility to do this by editing theme code (we’re using the empire theme)?

Unfortunately all the apps I’ve checked don’t work as we want because the users are still able to add more than max to the cart. All of the apps only work in the cart and not on product detail page. The user shouldn’t be able to add more than max to the cart.

Hi @StephanSchoch

this is really a nice one!

Just thinking out loud, you could implement some JS in the cart in order to simply disable the button “checkout” if the quantities are bigger than your threshold!

Also if this is the case, you should listen for clicks on the “remove from cart” buttons and the increment/decrement quantity in cart ones