Loyal + Low Stock

How to protect loyal buyers from stock issues in WooCommerce

Flag when a loyal category buyer orders a low-stock or backordered item

Catches orders where a customer with category purchase history is buying an item that is backordered or nearly out of stock - a valuable customer at risk of a poor experience.

Stock critical
The problem

When a loyal category buyer orders something that is backordered or about to run out, the stakes are higher than a first-time purchase. A bad experience could lose a proven repeat customer.

The solution

OrderBadger can combine category loyalty with stock status into a single rule.

Who this is for

Stores with inventory constraints where some products frequently go on backorder or run low, especially those with strong repeat purchase patterns.

At a glance
Category purchased at least twice before OR logic: backordered or under 5 units left Same line item must meet both conditions 3-hour SLA with Resolved/Escalate actions Badge: Loyal + Low Stock (red, critical)
People also search for
WooCommerce alert when loyal customer orders a backordered item How to flag low-stock orders from repeat category buyers Prioritise stock problems affecting your best customers WooCommerce rule combining category loyalty with inventory status Notify team when familiar buyers order nearly out-of-stock products

How it works

Flags orders where the same line item meets two conditions: the customer has purchased from that category at least twice before, AND the item is either on backorder or will have fewer than 5 units remaining. This prioritises stock issues that affect loyal customers.

Contact the customer proactively about any delays. Consider reserving stock for loyal category buyers or expediting restocking.

Rule template

Plain English rule At least one item is from a category the customer has purchased from at least twice before, and that same item is either on backorder or will have fewer than 5 units remaining in stock after this order

Write this (or something similar) in the OrderBadger rule builder. The AI compiler turns it into executable logic automatically.

Make it yours

Adjust thresholds
  • Raise 'at least twice before' to 'at least 5 times before' if you only want to protect your most loyal category buyers from stock disappointments.
  • Change 'fewer than 5 units remaining' to 'fewer than 10 units' if your products sell fast and 5 units can be depleted before restocking.
Add or remove conditions
  • Add 'and order total is over £50' to focus on higher-value orders where a poor experience has a bigger retention impact. … have fewer than 5 units remaining in stock after this order and order total is over £50
  • Remove 'or will have fewer than 5 units remaining in stock after this order' to only flag backordered items, ignoring low-but-available stock.

Badge preview

Default: Loyal + Low Stock
Passed: Loyal + Low Stock
Failed: Loyal + Low Stock

This badge appears in the WooCommerce order view with action buttons. Your team can respond directly from the badge pill.

When this rule matches

Familiar Category Backordered
Guest: no
Item is from a category purchased 3 times before and is on backorder.
Familiar Category Low Stock
Guest: no
Item is from a category purchased 5 times before and only 2 units will remain after this order.

When this rule does not match

Unfamiliar Category Backordered
Guest: no
Item is backordered but customer has only purchased from this category once - below the threshold of 2.
Familiar Category Stock Fine
Guest: no
Customer is a category loyalist (4 purchases) but item is in stock with plenty remaining.
Guest Checkout
Guest: yes
Guest checkout has null category purchase history and cannot satisfy the condition.

Workflow

This rule includes workflow features that help your team act on flagged orders.

Inbox
Yes
Interaction
Resolved / Escalate
SLA
3h (from created at)

Good to know

  • Guest checkouts are excluded.
  • Category matching is based on the product's primary category.
  • The stock threshold of 5 units is fixed in the rule text.

Frequently asked questions

  • What does the 3-hour SLA mean for this rule?
    Once the badge appears, your team has 180 minutes to respond - either marking it as Resolved or choosing to Escalate. This ensures stock issues affecting loyal customers are addressed quickly.
  • Does 'fewer than 5 units remaining' mean before or after the order?
    It means after the order. The rule checks the projected stock level once this order's quantity is subtracted, so it accounts for the current purchase.
  • Why does this rule require only 2 previous category purchases instead of 5?
    A lower threshold of 2 is used because the focus is on customer retention risk. Even a customer with just 2 prior category purchases represents a developing relationship worth protecting from a bad stock experience.
  • Can this rule trigger for an item that is low stock but not backordered, or does it need both?
    Either condition is sufficient. The rule uses OR logic - it triggers when a loyal category buyer orders an item that is either low stock (fewer than 5 units remaining) or on backorder. Both conditions do not need to be true simultaneously. The stock threshold can be adjusted in the rule text to suit your inventory levels.

Related rules

Try this rule in your store

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

Install OrderBadger Free