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

Issue with Disable Out of stock

Yuan jingguo

Hello, your plugin works very well for most of my products. However, for others such as: https://sumey.cl/producto/polera-hombre-cuello-polo-m-c/, it’s not indicating out-of-stock variations with a red cross, as it does for others, even though this option is activated

Image: https://sumey.cl/wp-content/uploads/2023/07/Evidencia-pagina-producto-jpg.webp

Hakik Zaman

Hi Yuan,

Thanks for reaching out to us. I have added the Code Snippets plugin and created the following snippet using the 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;
}

Please check now and let me know whether it resolves your issue or not.

Hope to hear from you soon.

Thank You

Yuan jingguo

Thank you very much, it works perfectly!! Excellent support