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

Max Variations

Mehmet Erkan

When I enter more than 100 variation per product some variations are not disabled according the configuration

Best

Mehmet

OK for variations <= 100

 

Variations below 100.jpg

 

When I add 1 variations do selection disabler does not work

Variations above 100.jpg

Hakik Zaman

Hi Mehmet,

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

Mehmet Erkan

Thanks, The script works 🙂

Many thanks

Mehmet