How to Apply “All Rules Match” or “Any One Rule Match” Conditions in Hide Shipping

Hide Shipping Method rules can include multiple basic conditions such as location, product type, user role, or cart value.

When you add more than one condition, you must decide how these conditions should work together.

This is where the All Rules Match and Any One Rule Match options are used.

They help you control exactly when a shipping method should be hidden.

How it works

You can create multiple Basic Hide Shipping Rules for a single shipping method.

After adding these rules, you choose how the plugin should evaluate them:

  • Should all conditions be true before hiding the shipping method?
  • Or should any one condition be enough to hide it?

The selected rule-match option controls this behavior.


Rule match options

1. All Rules Match (AND condition)

Choose All Rules Match when you want the shipping method to be hidden only if every added condition is satisfied.

Use this when:

  • You want strict control
  • Multiple conditions must be true at the same time

Example logic:

Hide shipping method only if

Condition A, Condition B AND Condition C are all true.

And condition to hide shipping
And conditions between rules

2. Any One Rule Match (OR condition)

Choose Any One Rule Match when you want the shipping method to be hidden as soon as any one condition is met.

Use this when:

  • You want flexible behavior
  • A single condition should trigger hiding

Example logic:

Hide shipping method if

Condition A OR Condition B OR Condition C is true.

Or condition for hide shipping
Apply OR condition between the rules

Steps to apply the All / Any One Rule Match

  1. Go to WooCommerce > Hide Shipping Method > Manage Rules

    Create or edit a hide shipping rule

    Add multiple Basic Rules, such as:

    • Country
    • User role
    • Product or product category
    • Cart subtotal

      Select either:

    • All Rules Match, or
    • Any One Rule Match
  2. Save the rule

The rule will now work based on the selected matching logic.


Example scenario

An online store wants to hide certain shipping methods only when all of the following conditions are met:

  • Customer is from selected countries
  • User role is Guest, Administrator, or Shop Manager
  • The cart contains Polo-neck or T-shirt products
  • Cart subtotal is greater than or equal to 100

Correct option to choose

The store owner should select All Rules Match because the shipping method must be hidden only when every condition is true at the same time.

If Any One Rule Match were selected instead, the shipping method would be hidden even if just one condition matched, which is not the desired behavior.


When to use each option

  • Use All Rules Match when conditions must work together
  • Use Any One Rule Match when a single condition is enough
  • Choose carefully to avoid hiding shipping methods too aggressively

Conclusion

The All Rules Match and Any One Rule Match options give you precise control over how hide shipping rules behave.

By choosing the right option, you can match real-world business logic and ensure customers see only the shipping methods that make sense for their situation.


FAQs

1. What is the difference between All Rules Match and Any One Rule Match?

All Rules Match hides the shipping method only when all conditions are true.

Any One Rule Match hides the shipping method when at least one condition is true.

2. When should I use All Rules Match?

Use All Rules Match when multiple conditions must be met together, such as location, user role, product type, and cart value.

3. When should I use Any One Rule Match?

Use Any One Rule Match when a single condition should trigger hiding a shipping method, such as hiding a method for a specific country or user role.

4. Can I change the rule match option later?

Yes. You can edit the rule at any time and switch between All Rules Match and Any One Rule Match without recreating the rule.

5. Will choosing the wrong rule match option affect checkout behavior?

Yes. Selecting the wrong option may hide shipping methods too often or not at all, so it’s important to choose the option that matches your business logic.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.