Magento 2 – How to Set Maximum Order Quantity for Individual Products

cataloginventorymagento2quantityshopping-cart

I am trying to figure out how to set the maximum qty allowed in a shopping cart for an individual product.

In my case: Most products can be added to the cart as many times as they want, but I have a few products, that are configurables that can only be added once to the shopping cart per order.

In my research through the internet I found a few stackoverflow post and articles (below):
https://stackoverflow.com/questions/27982651/magento-how-to-set-a-minimum-order-quantity-of-individual-simple-products

http://www.templatemonster.com/help/magento-how-to-set-minimummaximum-quantity-of-products-per-order.html#gref

where in Magento 1.9 you could set the Maximum and Minimum Qty Allowed in Shopping Cart per product. However, I haven't been able to find how to do this in Magento 2, I only found the global configurable.

If there is no way to do it through the admin, how would I go about to do this in code.

Best Answer

For Magento 2.1.x

Goto Admin -> Stores -> Configuration enter image description here

For individual settings, go to product details enter image description here

Click Advanced Inventory

enter image description here