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

JS file in plugin is unable to fetch the product variations

Gareth Owen

I have installed the latest version and configured it. However, there is an issue with their latest version of the plugin as well. The JS file in their plugin is unable to fetch the product variations, causing problems on the product page. A screenshot is attached for your reference. Please contact the plugin support team and request them to address the issue in their plugin.

[Error] single product variations fetching failed: 125178. – {code: “invalid_json”, message: “The response is not a valid JSON response.”} (anonymous function) (add-to-cart-variation.min.http://js:1:4786)addcartissue.png

Hakik Zaman

Hi Gareth,

Thanks for reaching out to us. I think your server was not responding when our plugin tried to get the variation using API. Please try the following snippet using a plugin called Code Snippets:

add_filter( 'woocommerce_ajax_variation_threshold', 'woo_variation_swatches_global_ajax_variation_threshold_min', 10, 2 );
function woo_variation_swatches_global_ajax_variation_threshold_min( $size, $product ){
return 250;
}

Then check again and don’t forget to clear your caches like- browser cache, caching plugin cache, and server-side cache.

Hope to hear from you soon.

Thank You

Gareth Owen

Dear Hakik

Please action the refund, as we couldn’t get the plugin to work and had to manually update the fabrics.

Hakik Zaman

Hi Gareth,

Please open a new private ticket by giving the order number and license key.

So that I can forward that to our Sales & Marketing team.

Thank You