Skip to Content

Advanced Product Quantity for WooCommerce — Addify

Min, max and step quantity rules for WooCommerce — per product, category or role, with combined cart-level limits.

Completed: November 2021 Type: Portfolio Project

Available on the WooCommerce Marketplace by Addify · 4.7 ★ (26 reviews) · $59 annually

Advanced Product Quantity for WooCommerce gives merchants min, max and step quantity rules per product, category or user role — plus combined cart-level rules and step-based ordering for stores that sell in packs of 6, 12, or any custom unit. Wholesale, food service, and trade stores reach for this plugin first when WooCommerce’s single-quantity default is not enough.

I built this as the quantity-engine that powers ordering flows where the buying unit is not one. The rule evaluator handles the messy interactions — a min-per-product rule, a step rule, a max-per-category rule and a min-cart-total rule all active at once — without surprising the buyer at checkout.

The problem it solves

Many businesses cannot sell by the single unit. A wholesale supplier needs 24-unit minimums. A bakery sells donuts in packs of 6. A trade-only store wants a $500 minimum cart before checkout opens. WooCommerce assumes single-unit purchases and gives merchants almost no native control over the buying increment.

The plugin gives merchants a clean rule-builder for quantity logic — define the rules once and the cart, mini-cart and checkout enforce them consistently.

What the plugin does

A full quantity-rule engine for WooCommerce ordering:

  • Min, max and step quantity per product — enforce a minimum of 24, a max of 1000, a step of 6
  • Quantity rules per category — apply rules to entire product categories in one stroke
  • Quantity rules per user role — wholesale roles get different limits than retail
  • Combined cart-level rules — minimum cart total, minimum unit count across the whole cart
  • Step-based quantity controls — sell in packs of 6, 12 or any custom increment
  • Inline validation messages — clear errors at the cart so buyers know what to fix
  • Per-variation rules — different quantity logic per variation of a variable product
  • Override variation default quantities — set the starting quantity to the minimum automatically

How it is built

The validation layer hooks into woocommerce_add_to_cart_validation, woocommerce_update_cart_validation and the checkout validation actions, then composes any active rules from the rule-builder into a single pass. Step-based controls patch the quantity input via a lightweight JS layer on product pages, with server-side validation as the source of truth — never trusting the client. Rules are stored in product meta and term meta so lookups stay fast even on stores with thousands of SKUs.

The plugin is HPOS-compatible, fully translatable, and integrates with the WooCommerce Blocks cart and checkout via the Blocks compatibility layer — important on modern WooCommerce stores using the block-based checkout.


Marketplace adoption

A 4.7-star rating across 26 reviews on the official WooCommerce Marketplace makes this one of the most reliable quantity-rule plugins available. The customer base is wholesale, food service, trade and any vertical where the natural buying unit is greater than one.

  • Marketplace rating: 4.7 stars — based on 26 customer reviews on the official WooCommerce Marketplace
  • Active wholesale and food-service customer base — used by stores where buying unit is not a single item
  • Blocks-checkout compatibility — works on the modern WooCommerce cart and checkout
  • Composes with Role Pricing and B2B suites — drops into the broader Addify wholesale stack cleanly
  • Multi-year tenure on the marketplace — continuously maintained through WooCommerce releases

Need a custom WooCommerce plugin built like this?

I build production-grade WooCommerce plugins like the ones I shipped on the official WooCommerce Marketplace — Blocks-compatible, HPOS-aware and built to handle the messy real-world combinations of rules merchants actually use. If you need custom ordering logic inside WooCommerce, let’s talk.

See my WooCommerce plugin development service

Project Details

  • Completed November 2021
  • Project Type Portfolio