Only show available variantions

Posted over 3 years by Stefan Schulte

Post a topic
Stefan Schulte

Hey guys,

just a small issue I discovered while using this plugin for a client.

I've got a product, which is available in three sizes.

For two of the sizes, there's additional selections in the next step.

I've created the variations accordingly.

If I choose the size, which does not have the extra options in the next step, they are still being displayed. If I choose one of them, WooCommerce shows "No products match your selection".

Is there a way to only display options that are actually available?

Like I choose a size and then the plugins checks which options are available in the next step and hides the rest?

Thanks for any input on this topic!

1 Votes


Sorted by

Handysalon posted over 2 years

Yes, there is a solution with a PHP snippet like this:

function iconic_wc_ajax_variation_threshold( $qty, $product ) {
    return 50;
add_filter( 'woocommerce_ajax_variation_threshold', 'iconic_wc_ajax_variation_threshold', 10, 2 );
You can use a plugin called "Variation AJAX limit" instead wich does the same and adds a option for maximum variations in WooCommerce settings.

0 Votes


Laura Barnett posted over 2 years

Is there a solution to this?

My issue is that I have square and rectangular canvases. If they choose square, I would like ONLY the square sizes to appear in the next option. 

0 Votes


Kev Xaveus posted over 3 years

I would also like to know the solution to this problem before I buy the plugin.  I se this question has had no reply after 1 month, which is a little concerning for level of support.

0 Votes

Login or Sign up to post a comment