Title: Variable Product Problem
Last modified: November 24, 2020

---

# Variable Product Problem

 *  Resolved [pempol85](https://wordpress.org/support/users/pempol85/)
 * (@pempol85)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/variable-product-problem-5/)
 * We have problem,
 * We need assign(variable) Bikes to different casette, colors etc…
 * For example Model 1.0 has 3 casette and 6 colors , model 2.0 has 3 different 
   casette and 3 colors more.
 * So we set variables (140 positions) to different model each and MPC shows all
   cassette and all colors.
 * [https://pafaro.pl/sklep/baltik/](https://pafaro.pl/sklep/baltik/)
 * When we will set less variables everything looks good. When I chose model 1.0
   I want to see only this casette assignet to model 1.0
 * [https://pafaro.pl/sklep/baltik-kopia/](https://pafaro.pl/sklep/baltik-kopia/)
 * Please HELP. How to fix this ?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fvariable-product-problem-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Rynald0s](https://wordpress.org/support/users/rynald0s/)
 * (@rynald0s)
 * Automattic Happiness Engineer
 * [5 years, 6 months ago](https://wordpress.org/support/topic/variable-product-problem-5/#post-13710898)
 * Hi [@pempol85](https://wordpress.org/support/users/pempol85/)!
 * There is a cut off at pre-loading 30 variations: [https://github.com/woocommerce/woocommerce/blob/657c312caeef7345b225ffb899da6dbb84692936/includes/wc-template-functions.php#L1027](https://github.com/woocommerce/woocommerce/blob/657c312caeef7345b225ffb899da6dbb84692936/includes/wc-template-functions.php#L1027)).
 * In the front-end, if a variable product has more than 30 variations, the data
   will be loaded via AJAX rather than handled inline. It is possible to change 
   this quantity using the `woocommerce_ajax_variation_threshold` filter.
 * The default variation threshold in the following code is 100
 *     ```
       add_filter( 'woocommerce_ajax_variation_threshold', 'wc_ninja_ajax_threshold' );
       function wc_ninja_ajax_threshold() {
           return 100;
       }
       ```
   
 * You can increase the value as need be, and here is how to add the code to your
   site:
 * [http://rynaldo.com/how-to-add-custom-code-to-your-woocommerce-wordpress-site-the-right-way/](http://rynaldo.com/how-to-add-custom-code-to-your-woocommerce-wordpress-site-the-right-way/)
 * Cheers!
 *  Thread Starter [pempol85](https://wordpress.org/support/users/pempol85/)
 * (@pempol85)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/variable-product-problem-5/#post-13712031)
 * **MAN YOU SAFE MY LIFE THANKS !!!!!!**
 *  Thread Starter [pempol85](https://wordpress.org/support/users/pempol85/)
 * (@pempol85)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/variable-product-problem-5/#post-13712035)
 * When you will be in Poland write to my I bring you a big boolte of vodka 🙂 Thanks
   one more time.
    -  This reply was modified 5 years, 6 months ago by [pempol85](https://wordpress.org/support/users/pempol85/).
    -  This reply was modified 5 years, 6 months ago by [pempol85](https://wordpress.org/support/users/pempol85/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Variable Product Problem’ 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

 * [atributes](https://wordpress.org/support/topic-tag/atributes/)
 * [product](https://wordpress.org/support/topic-tag/product/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * 3 replies
 * 2 participants
 * Last reply from: [pempol85](https://wordpress.org/support/users/pempol85/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/variable-product-problem-5/#post-13712035)
 * Status: resolved