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

How to change OR-logic to AND-logic BETWEEN filters?

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.

Hi there

I have 2 attributes: color and size

When I select color red and blue, it shows me all products that have either red or blue color. Thats correct.

But if I select color red, I can also select size XS, even if there is no red product in size XS.
When I then click the product, I realize that there is no variation with red color and size XS.

So I think between attributes or taxonomies the logic is set to OR instead of AND.

I only found inside a specific filter to change from OR to AND. But I want to change it BETWEEN multiple filters.

How can I do that?

Many thanks in advance for your help

Hello

between different filters comparison logic AND

But the problem is different. Your template displays and queries only parent products.  In fact, the parent product has these attributes and changing the comparison logic will not affect the result.

Hi Pablo

Thanks for your reply.

Can we customize it to filter variations?

Hello

In this case, you need serious code customization.