BlogOperational flags › How to flag unusual order quantities in WooCommerce
How-to Operational flags

How to flag unusual order quantities in WooCommerce

A customer just ordered 48 units of a product that usually sells in ones and twos. The order total looks normal-ish - it's a low-cost item - so it doesn't trigger any high-value flags. It sits in the queue, gets picked, packed, and shipped. Two days later you realise that was your entire stock of that SKU, the warehouse shelf is empty, and three other customers are now seeing "out of stock" on your best seller. Or worse - it was a fraudulent order placed with a stolen card, and you've just shipped 48 units to an address that doesn't exist.

Why quantity matters as much as value

Most order-flagging approaches focus on the total price. High-value orders get attention; low-value orders don't. But quantity is an independent risk signal. A £12 order for 48 cheap items is operationally more complex and risky than a £500 order for a single expensive product.

Bulk quantities affect stock levels, picking time, packaging requirements, and shipping weight. They may indicate wholesale or trade buying that should be routed to a different fulfilment process. They may indicate fraud - bulk orders of popular items are a common pattern in card-testing attacks.

What counts as unusual

"Unusual" depends on your product range. For a furniture store, 3 units of the same sofa is unusual. For a stationery supplier, 100 pens is a normal Tuesday. The threshold needs to match your business.

OrderBadger gives you several ways to define quantity thresholds:

- "Total quantity ordered is more than £10" - catches bulk orders across all items - "Any single item has a quantity of 5 or more" - catches bulk buying of individual products - "Order contains 3 or more line items and total quantity exceeds £20" - catches large, diverse orders

You can combine quantity with other signals for more precision. "Total quantity over £10 and customer has 0 previous orders" catches potential fraud. "Total quantity over £20 and customer has 5 or more previous orders" catches legitimate trade buyers who deserve a different workflow.

Stock protection

The most time-sensitive reason to flag bulk quantities is stock protection. When a single order can wipe out your inventory of a product, you need to know before dispatch - not after.

OrderBadger can combine quantity thresholds with stock-level checks. "At least one product will have 2 or fewer units remaining in stock after this order" highlights orders that are about to deplete your inventory. Add "total quantity is more than £5" and you're specifically catching bulk orders that threaten stock levels, rather than flagging every small order that happens to be the last unit.

Routing wholesale and trade orders

Many WooCommerce stores sell to both retail and trade customers through the same storefront. Trade orders tend to have higher quantities, simpler product mixes, and repeat patterns. Badging these orders automatically lets your team route them to the right process - different packaging, different invoicing, perhaps different dispatch priority.

Useful compound rules for trade detection include:

- "Total quantity over £20 and distinct product count is 3 or fewer" - bulk buying of a small range - "Customer has 10 or more orders in the last 12 months and total quantity over £15" - frequent bulk buyer - "Order total over £500 and every item is the same product" - single-SKU bulk order

Setting up quantity badges

Start with a single broad rule and refine from there. "Total quantity ordered is more than £10" will catch most genuinely unusual orders. Watch what it flags for a week, then decide whether the threshold is too high or too low.

If you're getting false positives from legitimate trade customers, add a customer history condition to exclude established buyers. If you're missing suspicious orders, lower the threshold or add a separate rule for first-time buyers with lower quantity limits.

The goal isn't to stop orders - it's to make sure your team sees them before they ship. A quick visual check takes seconds. Missing a problem order costs days.

Try it: ready-made rule recipes

Each recipe below is a real rule template you can activate in OrderBadger. Click through for the full configuration, test fixtures, and customisation tips.

Bulk Order Flag orders with more than five total units ordered
Plain English rule “Total number of units ordered is more than £5”
eight_units
Total quantity of 8 units exceeds the 5-unit threshold.
six_units
Total quantity of 6 units exceeds the 5-unit threshold.
See the full rule template →
Low Stock Flag orders that will leave a product at critically low stock
Plain English rule “At least one product will have 2 or fewer units remaining in stock after this order is placed”
one_unit_remaining
After this order, the Widget will have only 1 unit left which is below the threshold of 2.
zero_units_remaining
After this order, the Widget will have 0 units left - completely depleted.
See the full rule template →

Try it in your store

OrderBadger is free on WordPress.org. Install it and create your first rule in minutes - no code required.

Install OrderBadger Free