Support » Plugin: WooCommerce » Variations not filtering anymore?

  • Okay, I have an e-commerce store selling t-shirts. So for example say I have sizes S, M, L, XL, 2XL, 3XL, all available in 20 different colors. I also then have XL-Tall, 2XL-Tall, and 3XL-Tall which are only available in 5 of those 20 colors. I’m using attributes for size and color and have variations built for them. The variations for S-3XL show as “Any Color” and the variations for the tall sizes are setup individually for each of the colors they are available in. Previously on the product page when you selected one of the tall sizes only the 5 colors that were available showed up in the drop down. Now, after changing themes, all the colors show up in the drop down for the tall sizes but only when an available combination is selected does it allow purchase. Any idea about what may be the issue? A line of code that is different or missing?

    Thank you in advance for your help!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • See:

    The variations “threshold” is usually 30, though that can vary by theme. If you have less variations than the threshold, all the variations are loaded with the page, and unavailable variations cannot be selected. If you have more variations than the threshold, any combination can be selected, then ajax will be used to find out if the selected variation is available, and sometimes its not.

    You can increase the variations threshold using this snippet in functions.php for your child theme:

    As you make the threshold bigger, the page size gets bigger so page load time will increase. You’ll need to make a judgement.

Viewing 1 replies (of 1 total)
  • The topic ‘Variations not filtering anymore?’ is closed to new replies.