By default, WooCommerce will hide the attribute values that do not match with the previous selection. However, if there are more than 30 variations then this filter stops working and you see all available attribute values.
You can increase this limit by using this code in your theme’s functions.php file –
function custom_wc_ajax_variation_threshold( $qty, $product ) {
return 60;
}
add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );
You can learn more about this here – Change Limit on Number of Variations for Dynamic Variable Product Dropdowns
I hope this will solve the issue.
Thank you ??
]]>Works great, thank you very much!
Kind regards
]]>