PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Filtering two product attributes returns no results

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

I have multiple Attribute sets:
1. Color
1a. Red (1 prod)
1b. Blue
1c. Green

2. Tint
2a. Light (1 prod)
2b. Medium
2c. Dark

If I choose"Red", i get results (1 product) with"red" attributes.
If I choose"Light", i get results (1 product) with"light" attributes.
all good so far.
If I choose"Red" and"Light", i get no results. I have Logic of filtering set to"OR" for both attribute sets, so I'm expecting to see results for both"Red" or"Light" for a total of 2 products in the response, but I think it's looking for"AND".

Is it not possible to achieve this?

Hello

The logic will always be"AND" between two different attributes

 I have Logic of filtering set to"OR" for both attribute sets - Yes, this is logic inside one attribute. if  you  search:  (Red OR  Blue) AND (Medium OR  Dark )

To change this behavior, you need code customization.

Oh man, that's not good for me lol I'll take a crack at customizing it, but then I won't be able to update, right?

Hello

 but then I won't be able to update, right? -  You can use hooks to customize wp_query.  If  you  use  shortcode [woof_products] - https://products-filter.com/hook/woof_products_query/

OR  'parse_query'