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

Variation Swatches Bug

Hello,

I am using the Pro version of Variation Swatches for WooCommerce and I ran into a little bit of a bug.

I am re-creating my e-commerce shop, and I have imported all of my existing products into the new staging site. One manufacturer, in particular, has just added a new colorway for their products – so I have begun adding new variation products to all of the existing products to show this color.

There seems to be a problem with the new colorway and the Variation Swatches for WooCommerce plugin:

I am using the hover-over swatch feature on the Archive page and I really love this feature. However, whenever I hover over the new variation swatch (American Elm), the product image freezes on the American Elm variation, and it no longer allows you to change the product image on Hover. It remains stuck on this American Elm swatch until page refresh, where it will then do the same exact thing if you decide to hover over the American Elm again.

Here is a link to a page where you can see the problem, you will see the products that do not have this newly added swatch do not have any issues at all:

https://ezofficefurniture.com/product-category/desks/l-shaped-desks/

Hakik Zaman

Hi Ryan,

Thanks for reaching out to us. The new images are pushing extra ‘srcset’ inside <img> tag.

So I have added the following line inside your child theme’s functions.php file-

add_filter( 'wp_calculate_image_srcset_meta', '__return_null' );

Please flush your cache like browser cache, caching plugin cache, and server-side cache.

After flushing and checking, let me know whether it resolves your issue or not.

Hope to hear from you soon.

Thank You

Hello Hakik,

That seemed to solve the issue.

Thank you so much for your help, much appreciated!