Title: Countable Error
Last modified: November 11, 2023

---

# Countable Error

 *  Resolved [cheyenne711](https://wordpress.org/support/users/cheyenne711/)
 * (@cheyenne711)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/countable-error-2/)
 * 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/](https://christinaa33.sg-host.com/product/mushroom-head-jig-red-mustad-hook/)
 *     ```wp-block-code
       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)

 *  [xue28 (woo-hc)](https://wordpress.org/support/users/xue28/)
 * (@xue28)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/countable-error-2/#post-17199728)
 * Hi [@cheyenne711](https://wordpress.org/support/users/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](https://woocommerce.com/support-policy/) 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:
    - [WooCommerce Developer Resources Portal](https://developer.woocommerce.com/)
    - [WooCommerce Advanced Facebook group](https://www.facebook.com/groups/advanced.woocommerce/)
    - [WooCommerce Developer Slack Channel](https://woocommerce.com/community-slack/)
    - Hire a [WooCommerce Expert](https://woocommerce.com/experts/)
 * Hope this helps!

Viewing 1 replies (of 1 total)

The topic ‘Countable Error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [variations](https://wordpress.org/support/topic-tag/variations/)
 * [woo commerce](https://wordpress.org/support/topic-tag/woo-commerce/)

 * 1 reply
 * 2 participants
 * Last reply from: [xue28 (woo-hc)](https://wordpress.org/support/users/xue28/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/countable-error-2/#post-17199728)
 * Status: resolved