Content of the page

How to set logic ‘AND’ for taxonomies in the search request


Content of the article

QuestionIs it possible for product tags (when displayed as checkbox) to filter products according to an "AND" logic?

QuestionIf I use a query like this: "?swoof=1&pa_attr1=value_a,value_b" That gives me the products with value_a OR value_b. Is there a way to get only the products that have value_a AND value_b at the same time? 

Answerhttps://www.woocommerce-filter.com/hook/woof_main_query_tax_relations/

Works from v.1.1.5/v.2.1.5

 

 

Faster WordPress Hosting