fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Disable Out Of Stock item doesn’t work, all options are available(I need to have that cross over the ones that are out of stock)

Hello,

 

I have found out that Disable Out Of Stock item doesn’t put the cross over the options that are out of stock like it did on the previous versions. Is there any known bug or am I missing something?

Hakik Zaman

Hi Emanuel,

Please add the below snippet using the Code Snippets plugin:

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;
}

Thank You