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

Need to show products from two different taxonomies

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, I need to show all the products from two different taxonomies/attributes, currently only same taxonomy logic for OR is available. I need the OR logic between many taxonomies. I have tried the below which was proposed in the forum, but it is not working.

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;
}

Hello Felix

this will only work with a shortcode [woof_products]

For  dynamic  recount  use - woof_dynamic_count_attr  ( https://c2n.me/4eywQyW.png )

Use standard hooks for shop and category pages - parse_query  or woocommerce_product_query