Home › Forums › WoodMart support forum › Price filter for variations › Reply To: Price filter for variations
lofer
Please see this link:
https://stackoverflow.com/questions/49342704/product-variation-wp-query-with-a-product-category-in-woocommerce
HERE: Important Notes on Product Variations:
Product categories (or product tags) are not handled by product variations, but by the parent variable product.
Thus, in queries to the wc_product_meta_lookup table your are looking for IDs (wp_posts.ID) that are in certain categories (table wp_term_relationships), but you should also search (wp_posts.ID) whose post_parent were also in these categories (variations are not related to categories, but parents yes)
This happens in the class-widget-price-filter.php file (when calculate price range for filter (min and max), but also should look for classes that return searches.
I would like to resolve this as soon as possible, because is a important issue.
Thank you.