Support » Plugin: WooCommerce » Variations Losing Dependency after more than 30 Variations are Added

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?

    That worked! Thanks

    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:

    Filament Sample 50 g

    @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!

    @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 6 months, 2 weeks ago by filamentworld.
Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.