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

cross out of stock variations not working

Donat Barbe

Hello, the cross out of stock variations is not working.  We have already set the WC setting according to your directions.
I have adjusted your settings.

We have followed all your other directions also. nothing changes.

most variations (if not all) should be crossed out on this page.
https://vahana.fr/produits/licols-brockamp/?attribute_pa_taille=shetland

are there any other setting possibilities to check?

Also I cannot seem to find the AJAX option to deactivate it. It’s  frustrating that most the documentation is out of date.  so little of the tabs and options are the same.

We can’t provide access to our site. it contains all kinds of private data of course.
we have place the site info in the “additional info” box. I hope that helps.

Hakik Zaman

Hi Donat,

Thanks for reaching out to us.

Please add the following snippet using a plugin called Code Snippets:

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 add the above snippet using your child theme.

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.

Thank You

Donat Barbe

thank you Hakik, that worked like a charm. Will this get fished in the plugin updates? If you how will I know when it’s done and then I can remove this code. right? Also are there plans to update the documentation pages?

Hakik Zaman

Hi Donat,

You have more than 100 variations. Therefore, you need the snippet.

It could not be a mandatory snippet for all of the users. So, we kept it as a snippet.

I hope this will clear up your confusion.

Also are there plans to update the documentation pages?

Can you please share your findings regarding the documentation? So that, I can send it to our documentation team.

By the way, we get excited & honored when you use our plugin on your site.

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

Your rating keeps us inspired.

Thank You