DOCS

v1.3.28
 // Pro v1.2.20

 · Latest

Docs/Build Rules/Testing Rules

Testing Rules

Pro: This feature requires an active Order Daemon Pro licence.

Overview

The Rule Tester lets you simulate a rule against an existing order without placing a new test order or waiting for a live transaction. Use it to verify a rule works before publishing it, or to debug why a rule did not fire on a specific order.

Prerequisites

  • Order Daemon Pro installed and active with a valid licence
  • At least one order in your WooCommerce store
  • Administrator or Shop Manager role

How to test a rule

1. Open the Rule Builder

Go to Order Daemon → All Order Rules and open the rule you want to test (or create a new one and save it as a draft first).

2. Find the Test panel

In the right sidebar, locate the Test This Rule panel. If you do not see it, confirm that Pro is active and your licence is valid.

3. Select an order

In the search field, type an order ID, customer name, or order total. Select an order from the results.

4. Run the test

Click Test Rule Against Order. Results appear immediately.

Reading test results

Would trigger – all conditions passed. The rule would run on this order.

Would NOT trigger – one or more conditions failed. Each condition shows a pass or fail result with a specific reason. For example: “Order total $75.00 is less than the required $100.00.”

Failed conditions briefly highlight in the main rule editor so you can see exactly which settings to adjust.

Testing workflow

When building a new rule:

  1. Start with just a trigger and one condition
  2. Test against several orders – both ones that should match and ones that should not
  3. Add conditions one at a time, testing after each
  4. Publish once you have confirmed the rule behaves correctly

When debugging an existing rule:

  1. Find the specific order that should have triggered the rule but did not
  2. Test the rule against that order to see which condition failed
  3. Adjust the rule and test again before re-publishing

What’s next

Monitor live rule executions in The Insight Dashboard.