Home Forums WoodMart support forum Attribute image swatches slow

Attribute image swatches slow

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #90392

    khongyp
    Participant

    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.

    #90403

    Artem Temos
    Keymaster

    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

    #90449

    khongyp
    Participant

    Hi,

    Yes, have tested with twenty seventeen and it’s better.

    Here’s the login details. Thanks.

    #90462

    Artem Temos
    Keymaster

    Hi,

    We just tested with this theme and it works with the same speed https://gyazo.com/115b359dce07db25c5a8671cb78ba02f
    https://gyazo.com/2b7759b00d5f84a0156008d6e2eff129

    Regards

    #90622

    khongyp
    Participant

    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.

    #90623

    Artem Temos
    Keymaster

    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.

    #90628

    khongyp
    Participant

    Have you checked out the v3.1.1 link? Why it’s is so different from v3.2?

    #90631

    Artem Temos
    Keymaster

    Try to add the same number of variations as you tested on 3.2.

    #90671

    khongyp
    Participant

    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.

    #90686

    Artem Temos
    Keymaster

    Hi,

    Great, we are glad that you sorted it out.

    Regards

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Attribute image swatches slow’ is closed to new replies.