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

WOOF - Logic of filtering "AND or OR" of Product Tags is not working

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 need to enter a filter by product tag . The filter seems to work only in the condition of"AND" between values even if set to"OR" in the"additional options" .
I have also tried modifying the functions.php file by inserting code seen in some of your suggestions such as :

add_filter('woof_main_query_tax_relations', 'my_woof_main_query_tax_relations');
function my_woof_main_query_tax_relations()
{
return array(
'product_cat' => 'OR',
'product_tag' => 'OR',
// 'pa_color' => 'AND'
);
}

or

add_filter('woof_get_tax_query', 'my_woof_get_tax_query');
function my_woof_get_tax_query($tax_args){
//do smth here
$tax_args['relation'] ="OR";
return $tax_args;
}

I made a filter by product category with same filtering logic and nothing else and everything is perfect.
Can you help me?

I have installed the WOOF version - WooCommerce Products Filter v.2.2.4.2
Thanks a lot

Daniela

Hello  Daniela

Please  delete all  this  code

To  change  filter  logic - https://c2n.me/4bl2oY3.png

Drop  me  exact  link to the  issue and  wp-admin access - https://c2n.me/43SC6rb.png -> https://c2n.me/42BAoj4.png