Viewing 8 replies - 1 through 8 (of 8 total)
  • I am experiencing the same exact issue. I adjusted the AJAX variation threshold using this snippet to 50, and that seemed to work for 31 variations. I haven’t added in my full amount of variations though, but basically I’m assuming we won’t be able to utilize the new use of AJAX?

    Thread Starter AnchorDerek

    (@anchorderek)

    That worked! Thanks

    fw 3000

    (@filamentworld)

    Having the exact same problem here.
    I just added this code to the functions.php in my theme folder, but i saw no difference:

    function custom_wc_ajax_variation_threshold( $qty, $product ) {
    return 250;
    }

    add_filter( ‘woocommerce_ajax_variation_threshold’, ‘custom_wc_ajax_variation_threshold’, 250, 2 );

    Anything wrong here?

    Thats the example page:
    https://www.filamentworld.de/shop/filament-samples/sample/

    nicolesmithweb

    (@nicolesmithweb)

    @filamentworld – Your code should look like this…

    function custom_wc_ajax_variation_threshold( $qty, $product ) {
    	return 250;
    }
    
    add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );

    Had the same problem. Thanks!!

    I had the exact same issue; product broke dependency after 30 variations. The above code fixed it. Website in question was running WP v4.6.1 and Woocommerce v2.6.4. Thanks!!

    @nicolesmithweb you are AWESOME! Thank you! Was having the same issue and tearing my hair out but that little snippet added to my functions.php solved it. Thank you so much!

    fw 3000

    (@filamentworld)

    @nicolesmithweb thank you so much. We had to increase the size from 250, so i had to look in this tread again and saw that we forgot to thank you!
    all worked out well, the important thing was to change the fuctions.php in the child theme…

    • This reply was modified 8 years ago by fw 3000.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Variations Losing Dependency after more than 30 Variations are Added’ is closed to new replies.