Support » Plugin: WooCommerce » Variable products not greyed out in WooCommerce

  • Resolved laserulm



    I offer products in different color combinations – but not all.
    So I have variable products and offer black leather, black handle and red applications.
    But not black leather, brown handle and red (or any) applications.
    But the customer can choose this combination – only after clicking all 5 properties there is a notice, that this combination isn’t possible.
    This affects only the product “strap”, all other products are correct – if you click on grey leather you cannot choose red handle.
    (On my test page there also is a product with more options and it works well.)

    Any ideas what’s my mistake?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Rashed Ripon (a11n)


    Hello @laserulm ,

    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 🙂

    Thread Starter laserulm



    Works great, thank you very much!

    Kind regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Variable products not greyed out in WooCommerce’ is closed to new replies.