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

Not in stock products

Razvan Ursu

some products which are not in stock are not displayed with cross (like how is set in settings) and after selected products says is not in stock. I ve noticed that this happen for products which have more variations, for the rest with less variations is working OK.

Golam Kibria

Hi Razvan,

Please add the following snippet to your child theme’s functions.php file

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

You can also use the Code Snippets plugin to add it.

Let me know if this helps resolve the issue.

Thank You

Razvan Ursu

Hi, i ve instaled it, copy paste code in PHP function but without result, can you check to see if everything is ok or do you have other idea? Until aproximatly one week ago it worked very well

Golam Kibria

Hi Razvan,

Please check now.

Let me know if the issue is resolved.

Thank You

Razvan Ursu

Yes, now its working, can you tell me what was the problem? just to know in the future if i ll have it. Thansk a lot!

Golam Kibria

Hi Razvan,

You had an issue with the premium version. I have fixed it for you and it should not happen again.

We get excited & honored when you use our plugin on your site.

If you found my support helpful, could you leave your valuable review here: https://wordpress.org/support/plugin/woo-variation-swatches/reviews/?filter=5

Your rating keeps us inspired.

Is there anything else we can do for you now?

Thank You

Razvan Ursu

i understand, so i can delete the code from above from the code snippets?

Golam Kibria

Hi Razvan,

You can keep it as it will help if you have lots of product variations.

If you have more questions or confusion, please let us know.

If you found my support helpful, please leave a review here.

Thank you