Linux 软件免费装
Banner图

Dreamfoxmedia Purchase Limits for WooCommerce

开发者 dreamfox
更新时间 2026年10月13日 22:23
PHP版本: 7.4 及以上
WordPress版本: 7.0.4
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce quantity limits step quantity min max quantity minimum order quantity

下载

1.0.5 1.1.0 1.1.1

详情介绍:

Dreamfox Purchase Limits for WooCommerce gives you full control over how many units customers can buy. Enforce a minimum order quantity, cap the maximum, force sales in fixed increments (packs of 6, 12, …), and set minimum/maximum limits on the whole cart — item count and order amount alike. Every rule is enforced on the product page quantity stepper, at add-to-cart, on the cart page and again at checkout, with clear, fully customizable notices so customers always know what to do. Works with both the classic (shortcode) cart/checkout and the Cart & Checkout blocks. Free features Rule priority For any product the effective limit is resolved in this order, most specific first:
  1. Variation
  2. Product
  3. Category (most restrictive when a product is in several)
  4. Tag (most restrictive when a product has several)
  5. Storewide default
A product flagged as excluded skips all of the above and has no limits. Built by Dreamfox Media.

安装:

  1. Upload the plugin files to /wp-content/plugins/dreamfox-purchase-limits-for-woocommerce, or install through the WordPress plugins screen.
  2. Activate the plugin through the 'Plugins' screen.
  3. Go to WooCommerce → Quantity Rules to set storewide defaults, cart limits and messages.
  4. Optionally set per-product limits on the product Inventory tab, per-variation limits on each variation, or per-category and per-tag limits on the category/tag edit screens.

屏幕截图:

  • Per-product min/max/step on the Inventory tab.
  • Per-variation limits.
  • Per-category limits on the category screen.
  • A clear notice shown when a quantity is invalid.

升级注意事项:

1.1.1 Renamed to Dreamfoxmedia Purchase Limits for WooCommerce. No functional changes. 1.1.0 Adds verified, declared compatibility with the Cart & Checkout blocks; no change to classic checkout behavior. 1.0.5 Fixes the plugin's text domain to match its WordPress.org slug so translations work; no functional changes. 1.0.4 Plugin renamed to Dreamfox Purchase Limits for WooCommerce; no functional changes. 1.0.3 Redesigned settings screen with tabs; no changes to how rules are enforced. 1.0.2 Plugin renamed to Quantity Rules for WooCommerce; no functional changes. 1.0.1 Minor fixes for WordPress.org plugin review compliance; no functional changes. 1.0.0 Initial release.

常见问题:

Can I force customers to buy in packs of 6?

Yes. Set the Step (increment) to 6 on the product (or storewide). Customers can then only buy 6, 12, 18, and so on. Combine it with a minimum for a starting pack size.

Which rule wins if a product has both product and category limits?

The most specific rule wins: variation over product, product over category, category over tag, and tag over the storewide default. Each of minimum, maximum and step is resolved independently.

Can I set limits on a product tag?

Yes. Edit any product tag (Products → Tags) and set its minimum, maximum and step, just like categories. Category rules take priority over tag rules when both apply.

How do I stop a specific product from having any limit?

Open the product, go to the Inventory tab and tick Exclude from limits. That product will ignore every rule — product, category, tag and storewide. You can also disable rules for a whole category or tag from its edit screen.

Can I limit spend rather than quantity?

Yes. Every level (product, variation, category, tag and storewide) supports a minimum and maximum line amount (price × quantity), alongside the quantity rules.

Can I require a minimum quantity or spend for a whole category across the cart?

Yes. Edit a product category and set its Cart minimum/maximum quantity and Cart minimum/maximum amount. The plugin sums every item from that category in the cart and enforces the limits at checkout.

Can I limit how many different products are in an order?

Yes. Under WooCommerce → Quantity Rules → Cart limits set a minimum and/or maximum number of distinct products, either storewide or per category.

Can I set different limits for wholesale or VIP customers?

Yes. Under WooCommerce → Quantity Rules → Role-based rules you can override the storewide defaults and cart limits for any user role. When a customer has several roles, the most restrictive rule applies. You can also fully exempt a role from all limits.

Can the order-amount limit use the price after discounts?

Yes. Enable Order amount basis → after discounts in the Cart limits section to check the minimum/maximum order amount against the discounted total rather than the subtotal.

What happens when a product is in several categories with different limits?

The most restrictive category rule is used: the highest minimum, the lowest maximum and the largest step.

Can some customers bypass the limits?

Yes. Under WooCommerce → Quantity Rules → Role exemptions you can let specific roles (such as wholesale buyers) purchase any quantity.

Are the limits enforced at checkout?

Yes. Rules are checked on the product page, at add-to-cart, on the cart page and again during the checkout validation step, so invalid quantities can never slip through.

Is the plugin compatible with HPOS (High-Performance Order Storage)?

Yes, the plugin declares full HPOS compatibility.

Does this work with the block-based Cart and Checkout?

Yes. The plugin declares full compatibility with the Cart and Checkout blocks. Add-to-cart is blocked immediately with the same customizable message you configure for classic checkout. A rule broken while editing quantities in the Cart block is shown as a clear notice and still prevents checkout until it's resolved, exactly like the classic flow.

更新日志:

1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0