Maximum, Minimum and Multiple Quantity for WooCommerce Shops

Descripción

Maximum, Minimum and Multiple Quantity for WooCommerce Shops is a simple extension for WooCommerce that lets you set a maximum and/or minimum limit for the number of items that can be added to the cart, and/or force customers to buy a product in multiples of a set number (e.g. 3, 6, 9, …), for each product, per order.

It’s like one of those signs at the grocery store that says, “LIMIT 2 PER CUSTOMER!”, “MINIMUM 5 ITEMS” or “SOLD IN PACKS OF 3”. This plugin will not add a sign like that, but the quantity input field will honor the maximum, the minimum and/or the multiple.

You can set a global maximum, minimum and/or multiple to affect all products in your WooCommerce store or, if you prefer, a different one for each product, individually. Each product’s own setting will always override the global one.

Funciona para todos los productos en tu tienda WooCommerce: productos simples y variables.

Los clientes no necesita estar conectados para que funcione. Funciona tanto para compradores anónimos como para los conectados.

Este plugin fue desarrollado inicialmente por Isabel Castillo y adoptado posteriormente por Marco Almeida | Webdados / Naked Cat Plugins.

Foto de cabecera por Mick Haupt.

Other (premium) plugins

Already know our other WooCommerce (premium) plugins?

Capturas de pantalla

Instalación

Instalar y activar

  1. En tu escritorio de WordPress, ve a “Plugins –> Agregar nuevo”.
  2. Search for “Maximum, Minimum and Multiple Quantity for WooCommerce Shops” to find the plugin.
  3. When you see “Maximum, Minimum and Multiple Quantity for WooCommerce Shops”, click “Install Now” to install the plugin.
  4. Haz clic en “Activar” para activar el plugin.

Configuración

The plugin has 3 global settings and the same 3 settings again per product, so you can override the global ones for a specific product. You can use these settings in a variety of ways to accomplish the unique goals of your store:

  1. To set a global maximum, minimum and/or multiple to affect all products, go to WooCommerce, Settings, Products tab. Click “Inventory”. Scroll down to “Maximum quantity per product”, “Minimum quantity per product” and “Sell in multiples of”. Set your desired values there.
  2. To override this for a single product, go the product’s own “Edit product” page. Scroll down to the “Product Data” box. Click on the Inventory tab. There, you’ll see the same three settings, “Max quantity per order”, “Min quantity per order” and “Sell in multiples of”, where you can set your desired values for that product.

FAQ

¿Funciona este plugin con productos con variaciones (productos variables)?

Sí, desde la versión 1.4.

¿Puedo establecer un límite diferente para cada producto?

Sí, desde la versión 1.4.

Can I set a minimum quantity that customers must order?

Yes, since version 3.0, globally or per product.

Can I force customers to buy a product in multiples of a set number (e.g. 3, 6, 9, …)?

Yes, since version 3.0, globally or per product.

Is this plugin compatible with the new WooCommerce High-Performance Order Storage?

Yes, since version 2.0.

Is this plugin compatible with the new WooCommerce block-based Cart and Checkout?

Yes, since version 2.0.

I need help, can I get technical support?

This is a free plugin. It’s our way of giving back to the wonderful WordPress community.

There’s a support tab on the top of this page, where you can ask the community for help. We’ll try to keep an eye on the forums but we cannot promise to answer support tickets.

If you reach us by email or any other direct contact method, we’ll assume you need premium, paid-for support.

Where do I report security vulnerabilities found in this plugin?

You can report any security bugs found in the source code of this plugin through the Patchstack Vulnerability Disclosure Program. The Patchstack team will assist you with verification, CVE assignment and take care of notifying the developers of this plugin.

Can I contribute with a translation?

Sure. Go to GlotPress and help us out.

Reseñas

10 de Julio de 2024 1 respuesta
For 6 years this plugin limited clients to two units of my sample size product to prevent a loss leader from turning into a plain old loss. Just updated it today and several hours later someone ordered 12 units. Had to cancel the order, which means they probably won’t be back because they’ll be offended. I knew I should have left it alone…
8 de Octubre de 2020
Thanks for this plugin. We use it along with WP Job Manager and WooCommerce Subscriptions. It ensures that our users can only purchase one subscription plan. Before, we faced the issue that a few users accidentally purchased a plan twice. Thanks for investing your time. 🙂 Florian
Leer los 37 comentarios

Colaboradores & Desarrolladores

“Maximum, Minimum and Multiple Quantity for WooCommerce Shops” es software de código abierto. Las siguientes personas han contribuido a este plugin.

Colaboradores

“Maximum, Minimum and Multiple Quantity for WooCommerce Shops” ha sido traducido en 10 idiomas. Gracias a los traductores por sus contribuciones.

Traduce “Maximum, Minimum and Multiple Quantity for WooCommerce Shops” a tu idioma.

¿Interesado en el desarrollo?

Revisa el código, echa un vistazo al repositorio SVN, o suscríbete al registro de desarrollo por RSS .

Historial de cambios

3.0

  • [NEW] “Minimum quantity per product” option, globally and per product, to require a minimum quantity per order (mirrors the existing maximum quantity option)
  • [NEW] “Sell in multiples of” option, globally and per product, to force quantities to be bought in multiples of a set number (e.g. 3 allows 3, 6, 9, …)
  • [NEW] Renamed to “Maximum, Minimum and Multiple Quantity for WooCommerce Shops” to reflect the new options
  • [FIX] “Add to cart” buttons on product archives/lists (classic and block-based) now add a valid multiple and/or the minimum instead of always trying to add 1, when a “Sell in multiples of” and/or a minimum quantity is set
  • [TWEAK] Added a “Settings” link to the plugin’s entry on the Plugins list page

2.4 – 2026-06-06

  • [FIX] Fatal error in edge cases (e.g. a cart item referencing a product/variation that no longer exists)
  • [DEV] Move plugin repository to GitHub
  • [DEV] Requires WordPress 5.9 and WooCommerce 7.3
  • [DEV] Tested up to WordPress 7.1-alpha-62456 and WooCommerce 10.8.1

2.3 – 2025-04-14

  • [NEW] We are now called Naked Cat Plugins 😻
  • [DEV] Requires WordPress 5.8, WooCommerce 7.1, and PHP 7.2
  • [DEV] Tested up to WordPress 6.8-RC3-60146 and WooCommerce 9.8.1

2.2.1 – 2024-10-08

  • [FIX] Load text domain at the right time to avoid PHP notices on WordPress 6.7 and above
  • [DEV] Tested up to WordPress 6.7-beta1-59184 and WooCommerce 9.4.0-beta.2

2.1 – 2024-06-30

  • [NEW] Rename plugin to a more understandable title
  • [TWEAK] Main plugin file header adjustments
  • [TWEAK] Remove .pot file from repository
  • [TWEAK] readme.txt adjustments

2.0 – 2024-06-27

  • Plugin adopted by Marco Almeida | Webdados
  • Rename plugin main file and textdomain to the same as the folder name to follow the plugin development guidelines (the plugin will deactivate on update, and should be manually activated again)
  • Code refactor – Use namespacing, apply coding standards, better logic
  • Use WooCommerce CRUD functions instead of get_post_meta and update_post_meta
  • Fix maximum quantity on the WooCommerce block-based Cart
  • Test and declare WooCommerce High-Performance Order Storage compatibility
  • Test and declare WooCommerce block-based Cart and Checkout compatibility
  • Requires WooCommerce 5.0 and WordPress 5.6
  • Tested up to WooCommerce 8.9.0 and WordPress 6.6-alpha-58011

1.6

  • Fixed – Can no longer use WC’s name in plugin.

1.5.2

  • Corregido – Corregido un fallo que ignoraba el máximo de algunos productos variables.

1.5.1

  • Corregido – Prevalece el ajuste de “Vendido individualmente” sobre el límite que establece este plugin.

1.5

  • Nuevo – Agregados filtros para las cadenas de error.
  • Corregido – El máximo no se estaba aplicando en el caso de los productos variables.
  • Corregido – El máximo funciona ahora incluso cuando las reservas están activadas.

1.4.3

  • Corregido – El límite máximo también funciona con productos variables siempre que las reservas no están activas.

1.4.2

  • Corregido un error fatal que se originaba sobre get_parent_data().

1.4.1

  • Nuevo – Para productos variables, la cantidad de existencias restantes se ha restaurado. Anteriormente la cantidad de productos en existencia se ocultaba para productos con variaciones. Solo afecta a aquellas webs que mostraban la cantidad de existencia en la página de producto.
  • Corregidas varias notificaciones de PHP. Gracias a @brettmhoffman.
  • Internacionalización – Ahora se carga load_plugin_textdomain en el inicio en vez de plugins_loaded, como debe ser.

1.4

  • New – Support for different limits for individual products. See the version 1.4 release post for details.
  • Nuevo – Da soporte a productos variables (productos con variaciones). Ahora el plugin funciona con todos los productos, simples y variables.
  • Reprogramación del código – Se renombraron algunas funciones:
    isa_get_qty_alread_in_cart se renombró como isa_wc_max_qty_get_cart_qty
    isa_max_item_quantity_validation se renombró como isa_wc_max_qty_add_to_cart_validation
    add_isa_max_quantity_options se renombró como isa_wc_max_qty_options
    isa_woo_max_qty_load_textdomain se renombró como isa_wc_max_qty_load_textdomain
    isa_woo_max_qty_update_cart_validation se renombró como isa_wc_max_qty_update_cart_validation
    isa_woocommerce_quantity_input_args se renombró como isa_wc_max_qty_input_args
  • Reprogramación del código – Se eliminó una función:
    isa_woocommerce_available_variation, que usaba el gancho woocommerce_available_variation, fue eliminada.

1.3

  • Nuevo – Agregado la comptabilidad con el plugin WooCommerce Direct Checkout

1.2.4

  • Corregido – La configuración ha desaparecido en la última actualización de WC.

1.2.3

  • Nuevo – Agregado la traducción al danés. Gracias a Martijn Heesters.

1.2.2

  • Nuevo – Agregado la traducción al alemán. Gracias a @tofuSCHNITZEL.

1.2.1

  • Corregido – No se calcula correctamente la cantidad si actualizas la cantidad en la página del carrito. Esto hace que los usuarios no puedan incrementar o decrementar la cantidad de unidades de un producto mientras estén en la página del carrito.
  • Mantenimiento – Probada la compatibilidad con WP 4.0.

1.2.0

  • Nuevo – Se agrega el fichero de traducción .pot
  • Nuevo – Se agrega la traducción para los idiomas francés, hindi y español.
  • New – Changed textdomain to plugin slug.
  • Mantenimiento – Probada la compatibilidad con WP 3.9.

1.1.9

  • Corregido: Se agrega _update_cart_validation para evitar la sobreescritura manual en la actualización del carrito previo al checkout.
  • Retoque: Se elimina passed=true en la comprobación, se usa el parámetro pasado en su lugar.
  • Mantimiento: se cambia woocommerce_add_error por wc_add_notice

1.1.8

  • Corregido: Ahora comprueba la cantidad introducida a mano porque el límite máximo se podría sobreescribir escribiendo un número.
  • Corregido: Se ignoraba el límite cuando un producto estaba agregado previamente en el carrito, se agreguéa otro producto y se volvía a agregar el producto inicial al carrito.
  • Mantenimiento: Actualizada la descripción para reflejar que el plugin aun no es compatible con productos variables.

1.1.6

  • Corregido: El límite máximo se sobreescribía cuando se agreguéa un nuevo producto en la página de carrito.
  • Corregido: El límite máximo se sobreescribía cuando se actualizaba la cantidad de unidades en la página de carrito.

1.1.5

  • Probada la compatibilidad con WP 3.8.

1.1.4

  • Probada la compatibilidad con WP 3.7.1.

1.1.3

  • Corrección de errores relacionados con la sincronización con Git.

1.1.2

  • Corrección de errores relacionados con la sincronización con Git.

1.1.1

  • Corrección de errores relacionados con la sincronización con Git.

1.1

  • Probada la compatibilidad con WP 3.6.1.

1.0

  • Versión inicial.