Linux 软件免费装

Sawir Min Max Quantities for WooCommerce

开发者 sawirricardo
更新时间 2026年7月21日 18:48
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce minimum quantity maximum quantity quantity rules order limits

下载

1.0.0 1.0.1

详情介绍:

Sawir Min Max Quantities for WooCommerce lets store owners control how many items customers can buy. Set minimum, maximum, and "group of" multiple quantities per product, per variation, per product category, and for the total number of items in an order. Rules are enforced on product page quantity inputs, when adding to cart, and again on the cart and checkout pages. Developed by Ricardo Sawir for Sawir Studio LLC. More plugins by Sawir Studio

安装:

  1. Upload the plugin files to /wp-content/plugins/sawir-min-max-quantities-for-woocommerce.
  2. Activate the plugin through the WordPress Plugins screen.
  3. Edit a product and set minimum, maximum, or group-of quantities in the Inventory tab, or edit a product category and set its quantity fields.
  4. Optionally set order-level item limits under WooCommerce > Settings > Products > General.
  5. Visit a product page and try quantities outside the rules to see them enforced.

常见问题:

Does this require WooCommerce?

Yes. This plugin is built for WooCommerce products, cart, and checkout hooks.

What happens when a product has both its own rule and a category rule?

The product rule wins. Category rules only apply to products that have no rule of their own.

Can variations have their own rules?

Yes. Each variation can set its own minimum, maximum, and group-of values. Empty variation fields inherit from the parent product or category fallback.

What does "group of" mean?

"Group of" requires the quantity to be purchased in multiples of that number. For example, a group of 6 allows 6, 12, 18, and so on.

What if a product belongs to multiple categories with rules?

The most restrictive combination applies: the highest minimum, the lowest maximum, and the shared multiple needed to satisfy group-of rules across its unchecked fallback categories.

What does "Apply rules to category total" do?

When enabled on a category, that category's rules apply to the combined quantity of all matching cart items. The category no longer acts as a per-product fallback while that option is enabled.

Does a parent product maximum limit all variations combined?

Yes, as long as the variations have no rules of their own: their quantities are summed and checked against the parent rule. A variation with its own rule is limited individually instead of counting toward the parent total.

Why can customers add less than the minimum to the cart?

Minimums and group-of multiples are enforced on the cart and checkout pages so customers can build up quantity across multiple adds. Checkout stays blocked until the rules are met. Maximums are blocked immediately at add-to-cart.

How do I remove a rule?

Leave the field empty (or set it to zero) and save. Empty fields mean no rule.

Does uninstalling remove the plugin data?

Yes. Deleting the plugin removes its options, product metadata, and category metadata.

更新日志:

1.0.1 1.0.0