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

Disable Ajax Variation Threshold

Steven Wade

Good afternoon,

Purchased the Pro version today after watching videos and reading reviews. The plugin is installed on retail.millbrookcanada.ca.

The issue I have is this: Works perfectly until we reach a product with many variations (https://www.retail.millbrookcanada.ca/product/duer-no-sweat-pant-relaxed-taper/), in one of the videos I watched, I saw the option  *disable ajax variation threshold to make all variations work…*

At 6 min. 7 secs. in the following video

I read a few forums before asking for help, seems to be a feature that was removed from new version… what is the alternative, considering the main reason the plugin was purchased is to inform a client before he has to jump from one size/length/colour to see if a product is available?

I look forward to you answer and solution, thank you in advance for your response… Cheers!

Steven

Golam Kibria

Hi Steven,

We are sorry for the inconvenience.

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 Snippet plugin to add the snippet too.

Let me know if this helps resolve the issue.
Thank You