Attribute image swatches slow
-
Hi,
I have created a variable product with 11 Colors and 3 Sizes attribute swatches and i found that it’s rather slow and take a few seconds to load/response when toggle between the sizes and colors.
Here’s the sample site.
Hello,
Could you please check how it works with some default WordPress theme like twentysixteen to understand is it our theme issue or not?
Regards
Hi,
Yes, have tested with twenty seventeen and it’s better.
Here’s the login details. Thanks.
Hi,
It is slow after upgraded to v3.2. Your screenshot shown there’s ajax call each time when toggling between the attributes. But i believe woocommerce default setting there’s no ajax call when toggling between attributes. Below is the website using twenty fifteen theme and you can see there’s no delay when toggling the attributes.
Luckily i still keep a copy of v3.1.1 so i setup another test site just to show you the different. The speed is ok in v3.1.1 and there’s also no ajax call.
But we sent you a screenshot with default theme and you can see the same speed and the same AJAX call. It is how WooCommerce variations work with all themes. It use AJAX for products with a large number of variations.
Have you checked out the v3.1.1 link? Why it’s is so different from v3.2?
Try to add the same number of variations as you tested on 3.2.
Hi,
I found a solution online which is to include this code in functions.php. It’s working perfectly. Below is the link. You can see it is so much faster now.
I hope this code won’t conflict with your codes?
add_filter( ‘woocommerce_ajax_variation_threshold’, function() { return 50; } );
Thanks.
Hi,
Great, we are glad that you sorted it out.
Regards
The topic ‘Attribute image swatches slow’ is closed to new replies.