> ## Documentation Index
> Fetch the complete documentation index at: https://codebeans-cb-checkout-rules.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Rule status and testing

> Use Active, Testing and Deactivated to control when a rule runs, and test rules without affecting customers.

Every rule has one of three statuses. You set it in the **Rule status** card on the right side of the rule editor, then click **Save**.

![Active runs for every customer. Testing runs only for test@gmail.com. Deactivated doesn't run but keeps its settings.](https://mintcdn.com/codebeans-cb-checkout-rules/9lVKcptiAqYAtTXj/images/rule-status.svg?fit=max\&auto=format\&n=9lVKcptiAqYAtTXj\&q=85\&s=8d6b5a7f007956911adf2a0597c26189)

| Status | Who it applies to | Use it when |
| - | - | - |
| **Active** | Every customer | The rule is ready for your live store. |
| **Testing** | Only checkouts that use the test email | You want to try the rule before customers see it. |
| **Deactivated** | Nobody | You want to pause the rule but keep its settings. |

The **Home** page shows how many of your rules are in each status, and each rule in **My Rules** has a badge with its status.

## Test a rule safely

In **Testing**, a rule only runs when the email entered at checkout is `test@gmail.com`. Any other customer goes through checkout as if the rule didn't exist. You can click the email in the **Rule status** card to copy it.

**1. Set the rule to Testing**

Open the rule, choose **Testing** in the **Rule status** card and click **Save**.

**2. Start a checkout with the test email**

In your online store, add a product to the cart, go to checkout and enter `test@gmail.com` as the email.

**3. Enter details that break the rule**

For example, for **Prevent P.O. Box**, enter `PO Box 123` as the address. For address rules, fill in every required shipping or billing field.

**4. Check the result**

Continue the checkout. You should see your error message, and you should not be able to complete the order. Change the details so they follow the rule, and the checkout should continue.

**5. Make the rule live**

When you are happy with the result, set the rule to **Active** and save.

> [!TIP]
>
> The email match ignores upper and lower case, so `Test@Gmail.com` also works.

> [!WARNING]
>
> Testing still runs on your live checkout. Use it with the test email only, and don't place real orders with `test@gmail.com`.

## Deactivate or delete a rule

* **Deactivate** keeps the rule and all its settings, but it no longer checks or blocks any checkout. You can switch it back to Active at any time.
* **Delete** removes the rule from the app and from Shopify's checkout rules. You can't undo this. To delete a rule, open it and click **Delete**, then confirm.

> [!NOTE]
>
> Deleting a preset rule makes it available to add again from **Add new rule**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.