Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics

How to use the “OR” conditional filter

Hey there :)

So, I need to filter some orders on my WooCommerce based on their status. The problem is that I have to filter more than one status at the same time. Let’s say I need to filter orders with “pending payments” and “processing” status. Do you have a feature of this?

I saw on the ACP URL that a query param “ac-rules” is sent with the following JSON:
“condition”: “AND”,
“rules”: [
“id”: “order_status”,
“field”: “order_status”,
“type”: “string”,
“input”: “select”,
“operator”: “equal”,
“value”: “wc-request_unpriced”,
“formatted_value”: “Request+Unpriced”
“valid”: true

So I thought it would be possible to create conditional filters with “OR”.

2 years, 11 months ago
Stefan van den Dungen Gronovius

Unfortunately, we don’t support the OR operator in our Smart Filtering feature at this moment.
Even though we use a front-end plugin to build the query params, we don’t use the actual condition param at this moment.

2 years, 11 months ago

Oh. That’s too bad :(

Thank you for answering fast, though.

2 years, 11 months ago

You must be logged in to reply to this topic.