How to set up the “AND” logic for the filter values

This article is general for Shopify, BigCommerceWix, WooCommerce, Magento 1, and Magento 2.

By default, the options of the multiple filters work by the “OR” logic. That’s when products that match any of the selected filter options are shown in the search results. You can set up the “AND” logic. So products that match all the selected filter options will be shown in the search results. For example, if a customer selects the “black” and “white” filter options on the storefront, the products that match all these options (not only one of them) will be displayed in the search results.

An example of the “OR” logic:

How to set up the "AND" logic for the filter values

An example of the “AND” logic:

How to set up the "AND" logic for the filter values

To set up the “AND” logic for the filter values, follow these steps:

  1. Go to Filters > Filter list > Filters tab.
  2. Click the pencil icon next to the filter where you want to change the logic.
  3. Go to the Settings tab and select the “AND” value for the Selection operator setting.

    How to set up the "AND" logic for the filter values

  4. Apply the changes.

That’s it. The filter now works by the “AND” logic.

Updated on January 4, 2024

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you

Let us improve this post!

Please tell us how we can improve this post

Related Articles

Back to top