| 开发者 | dreamfox |
|---|---|
| 更新时间 | 2026年10月13日 22:23 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0.4 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/dreamfox-purchase-limits-for-woocommerce, or install through the WordPress plugins screen.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.
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.
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.
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.
Yes. Every level (product, variation, category, tag and storewide) supports a minimum and maximum line amount (price × quantity), alongside the quantity rules.
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.
Yes. Under WooCommerce → Quantity Rules → Cart limits set a minimum and/or maximum number of distinct products, either storewide or per category.
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.
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.
The most restrictive category rule is used: the highest minimum, the lowest maximum and the largest step.
Yes. Under WooCommerce → Quantity Rules → Role exemptions you can let specific roles (such as wholesale buyers) purchase any quantity.
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.
Yes, the plugin declares full HPOS compatibility.
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.