Is there a way to get product_variations in WP_Query that filter / only get the product variations that have the right woocommerce-product-category, color (attribute woocommerce), size (attribute woocommerce), price (custom post meta)?
I can't figure out how to make the WP_Query.
$all_product_variation_query = new WP_Query( array(
'post_type' => 'product_variation',
'post_status' => 'publish',
'posts_per_page' => '-1',
) );
This guy is so close with what i need https://wordpress.stackexchange.com/questions/246516/woocommerce-filter-by-parent-products-taxonomy-and-product-variations-meta-da
BUT i need a way to combine Product_Variation with Product and then filter to get only the product_variation with certain color (attribute), size (attribute), and taxonomy id (category)