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

Not working on large number of variations

Evan Roberts

I have 107 Variations on one product. I think this is due to the Ajax threshold. Is there any way to fix this?

Rezwan Shiblu

Hi Evan,

Thanks for reaching out to us.

Please install and activate the Code Snippets plugin and add the below snippet:

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

Then let me know if it resolves your issue or not.

Thank You