WooCommerce Max Quantity is a simple plugin extension for WooCommerce that only does one thing: it lets you set a max limit for the number of items that can be added to the cart, for each product, per order.
It’s like one of those signs at the grocery store that says, “LIMIT 2 PER CUSTOMER!” This plugin will not add a sign like that, but the quantity input field (pictured above) will hit a limit.
You can simply set a universal limit to affect all products in your WooCommerce store. If you prefer, you can set a different limit for each product, individually. Each product’s own limit will always override the universal limit. (Support for setting different limits per product was added in WooCommerce Max Quantity version 1.4.)
This works for all products in your WooCommerce store: Simple and Variable products. (Support for products with variations was added in version 1.4.)
Customers do not have to be logged in for this to work. This works for guest buyers, as well as logged-in buyers.
Get the plugin free at the WordPress.org plugin repository.
See the WooCommerce Max Quantity Documentation for setup instructions.
WooCommerce Max Quantity is also on GitHub where you can fork it, contribute, and report issues.