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.
OrderBadger can combine category loyalty with stock status into a single rule.
Stores with inventory constraints where some products frequently go on backorder or run low, especially those with strong repeat purchase patterns.
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
Write this (or something similar) in the OrderBadger rule builder. The AI compiler turns it into executable logic automatically.
Make it yours
- 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 '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
This badge appears in the WooCommerce order view with action buttons. Your team can respond directly from the badge pill.
When this rule matches
When this rule does not match
Workflow
This rule includes workflow features that help your team act on flagged orders.
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