Skip to main content

Conditions

Conditions are the building blocks of advanced rules. Each condition checks one attribute of the order, cart, or customer.

Some order data — how the order was paid, how it will be delivered, Shopify's fraud analysis — doesn't exist until the order is placed. Conditions that depend on it can only be evaluated in the After checkout flow.

All conditions

ConditionMatches when…Before / During checkoutAfter checkout
All ordersEvery order, unconditionallyYesYes
Cart total above amountThe cart or order total exceeds the amount you setYesYes
Shipping to countryThe shipping address is in one of the selected countriesYesYes
Shipping to state/provinceThe shipping address is in one of the selected states or provinces (US, CA, AU, GB)YesYes
Cart contains productsThe cart or order contains one or more of the selected productsYesYes
Products with a specific metafieldA product in the cart or order has the real_id.requires_verification metafield set to trueYesYes
Products in collection with a specific metafieldA product belongs to a collection with the real_id.requires_verification metafield set to trueYesYes
Customer tagThe customer's tags contain (or don't contain) a value you setYes*Yes
Customer metafieldA text metafield on the customer equals (or doesn't equal) a value you setYes*Yes
Billing/shipping address mismatchThe billing address doesn't match the shipping addressYes
Credit card paymentThe order was paid with a credit cardYes
Local deliveryThe order uses a local delivery shipping methodYes
Order sourceThe order came from a specific sales channel (e.g., web, POS, draft orders)Yes
Order risk levelShopify's fraud analysis flagged the order at a risk level you selectYes
* Before checkout, customer conditions require the customer to be logged in to their store account. After checkout, they're evaluated against the order's customer — no login needed.

Flow compatibility

When you're building rules in the After checkout settings, every condition is available. If a rule can only match after checkout — meaning it can never be satisfied without post-checkout data — it's marked with a badge in your rules list:

A rule with the After checkout only badge, disabled after switching flows

A rule is "after checkout only" when its post-checkout conditions are required for a match. For example:

  • Credit card payment AND shipping to Connecticutafter checkout only: the payment method is never known earlier, so the AND can't be satisfied
  • Credit card payment OR shipping to Connecticut — works everywhere: before checkout, the shipping state alone can satisfy the OR

Switching to an earlier flow

If you switch your verification flow to Before checkout or During checkout while you have "after checkout only" rules enabled, Real ID disables those rules when you save and shows you which ones were affected. This prevents a silent gap where a rule appears active but can never match.

The banner shown in before-checkout settings when a shared rule can't run there

To use those rules again, switch back to the After checkout flow and re-enable them in the rules list.

Product metafield conditions

The two metafield conditions let you manage which products require verification from the Shopify admin, without touching Real ID settings:

  1. In Shopify, create a metafield definition on Products (or Collections) with the namespace and key real_id.requires_verification, type True or false
  2. Set it to true on the products or collections that require ID verification
  3. Add the Products with a specific metafield (or Products in collection with a specific metafield) condition to a rule

From then on, tagging a product for verification is a product-catalog operation — useful when your merchandising team manages restricted items, or when another app sets the metafield for you.

note

Metafield conditions require the read products permission. If Real ID doesn't have it yet, you'll be prompted to grant it in the settings page.