Title: Problem with woocommerce variations
Last modified: April 11, 2021

---

# Problem with woocommerce variations

 *  Resolved [AA Web Marketing](https://wordpress.org/support/users/skywebuk/)
 * (@skywebuk)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/problem-with-woocommerce-variations-2/)
 * Hello,
 * I have a problem with Woocommerce variations.
 * I have set up 4 attributes as below:
 * 1- Quantity / Setup mode.
    This attribute has 4 options inside it
 * 2- Strength.
    This attribute has 4 options inside it
 * 3- Direction.
    This attribute has 9 options inside it
 * 4- Liquid.
    This attribute has 58 options inside it
 * On the backend of the product, some variation doesn’t go with other option.
 * So as I customer experience on the page I will be able to select how many quantities
   need, so if I select 1 bottle the second attribute should exclude anything don’t
   go with bottle 1 as this is the normal behaviour for it.
 * it will be hard for a customer to keep changing so he can’t find which option
   will work with his first selection right?
 * Please check this video for you to have a better view of the problem: [https://streamable.com/off4kh](https://streamable.com/off4kh)
 * We will really appreciate your help or any suggestion to fix this issues.

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

 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/problem-with-woocommerce-variations-2/#post-14305212)
 * You can increase the variations threshold from the default 30 so that all the
   variations data is loaded in the page, then there is no need for that ajax call
   to find out if a particular variation exists. Will be a better customer experience.
   The dropdowns will be correct.
 * But that’s 8,000+ variations, so it would be a huge page to download. And 8,000
   variations would be very difficult in admin as well. AT 50 variations per run,
   that’s 160 runs. I feel unwell just thinking about it.
 * Consider restructuring your product or making it as several products, and look
   at add-on or product-options plugins so some attributes can be removed, so reducing
   the number of variations to a more manageable number.
 *  Thread Starter [AA Web Marketing](https://wordpress.org/support/users/skywebuk/)
 * (@skywebuk)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/problem-with-woocommerce-variations-2/#post-14305301)
 * Hi
 * My problem is not with increasing the variations my problem is excluding/hide
   product that doesn’t go with the first attribute.
 * When a customer selects quantity, for example, if the customer select 1 bottle
   the second attribute should exclude/hide anything that doesn’t go with bottle
   1 as this is normal behaviour.
 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/problem-with-woocommerce-variations-2/#post-14305415)
 * No, I didn’t say increasing the number of variations, I said increasing the variations
   threshold.
 * The variations threshold is normally 30. If you have less variations than the
   threshold, all the variations data will be loaded in the user’s browser at the
   same time as the page. The code on the page will make sure that unavailable variations
   cannot be selected. This is the best experience for the user.
 * If you have more variations than the threshold, then the available variations
   are not loaded at the same time as the page. This keeps the page smaller and 
   keeps page load time low. However, all possible combinations can be selected.
   Then an ajax call is made so the page can check with the server to see if that
   combination is available. If its not, the customer gets the unsatisfactory message
   that the variation is not available.
 * So, to ensure only available variations can be selected, you can increase the
   threshold to more than the number of variations. This is better for the user,
   but the downside is the page gets bigger at first load. This might be a problem
   for users on slow connections who may just give up waiting for the page to load
   and go somewhere else.
 * Its a trade-off.
 * You can increase the variations threshold using this snippet in functions.php
   for your child theme:
    [https://gist.github.com/mohsinoffline/f06c66259e667d6b16bb](https://gist.github.com/mohsinoffline/f06c66259e667d6b16bb)
 * I’ve had feedback from people who have increased the threshold to 50 or maybe
   100 and have found the page load time is still acceptable. But you have 8000+
   variations, so that’s never going to be satisfactory.
 * Also, Woo only allows us to make 50 variations in one run. So 8000+ variations
   would be 160 runs, and that’s not practical from a shop management perspective.
   We can only see 15 variations at one time on the admin product page, ie 500+ 
   page-fulls.
 * So I think the way forward for you is to restructure the product as two or more
   products, or you could use an add-on or product-option type plugin to expose 
   one or more of the attributes as radios or checkboxes, and this will reduce the
   number of variations to a more manageable number.
 *  Thread Starter [AA Web Marketing](https://wordpress.org/support/users/skywebuk/)
 * (@skywebuk)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/problem-with-woocommerce-variations-2/#post-14306641)
 * Thank you so much, it’s working fine now

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

The topic ‘Problem with woocommerce variations’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3640790)
 * [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/)

 * 4 replies
 * 2 participants
 * Last reply from: [AA Web Marketing](https://wordpress.org/support/users/skywebuk/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/problem-with-woocommerce-variations-2/#post-14306641)
 * Status: resolved