• Resolved cheyenne711

    (@cheyenne711)


    I have used this code to increase the number of possible variations and it works, however the products that have more than 400 variations now show a countable error message as seen on this page . I reached out to the Woo Commerce Community Forum twice and haven’t gotten a response. Does anyone have any experience with large variations who could help me? Thanks in advance.

    https://christinaa33.sg-host.com/product/mushroom-head-jig-red-mustad-hook/

    function custom_wc_ajax_variation_threshold( $qty, $product ) {
    	return 450;
    }
    add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 100, 2 );
    
    
Viewing 1 replies (of 1 total)
  • Hi @cheyenne711

    Thanks for reaching out!

    I understand you’re having an issue with products that have more than 400 variations showing a countable error message when using the custom snippet above.

    This error might be due to exceeding the maximum limit of variations that WooCommerce can handle efficiently. While it’s possible to increase the limit, it can sometimes lead to performance issues or errors, as you’re experiencing.

    This is a bit of a complicated topic that would need some customization to address. Unfortunately, custom coding is not something we can assist with directly. However, I’ll keep this thread open for a bit to see if anyone from the community can lend a hand.

    If you have any other questions related to development or custom coding, don’t hesitate to reach out to some of the great resources we have available for support. The WooCommerce community is filled with talented open-source developers, and many of them are active on the channels listed below:

    Hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Countable Error’ is closed to new replies.