Hi Olaf,
Thanks for reaching out to us.
Generally, the WooCommerce default threshold value is 30.
After that WooCommerce uses the Ajax mechanism to get variation data and unavailable options will not be removed (from the dropdown) when you have more than 30 variations. Rather than unavailable variations are selectable and it will display a message – “Out Of Stock“.
Using our Pro plugin threshold increased to 100 by default. Our Pro plugin displays swatches on the archive/shop page.
It is not recommended to increase the value to more than 100. Otherwise, you may experience a slow site issue.
I can see you have 160 variations for this product. By the way, here is a snippet to increase the threshold:
add_filter( 'woo_variation_swatches_global_ajax_variation_threshold_max', 'woo_variation_swatches_global_ajax_variation_threshold_max_edit', 10, 2 );
function woo_variation_swatches_global_ajax_variation_threshold_max_edit( $size, $product ){
return 700; //Increase the threshold value here
}
Note: It is recommended to add the Custom Code to the child theme’s functions.php file, to avoid any data loss while updating the Parent Theme.
Hope to hear from you soon.
Thank You
Stock features are not showing
Olaf Lederer
Hi,
I think I used all the options I need to disable the variations that are out of stock, but nothing changes if I select example this product:
https://safe.wordtest.nl/p/emma-vera-s2-veiligheidsschoen-food-met-src-antislipzool/?attribute_pa_maat=37&attribute_pa_breedtemaat=normaal&attribute_pa_kleur-zool=blauw
Check the attached screenshot for the stock settings.
Kind regards
Olaf