• BackuPs

    (@backups)


    Theme is using its own resize script but since V 3.0 the variant product is adding unwanted src_set code to the image. Even the original src=”image url” the theme adds as a url with the propper sized image is replaced with default shop image as set in the woo product display settings. Very annoying i must say as now we get blurry images on resize and the theme resizing script is failing because the woo plugin replaces the image url after the theme has resized the image.

    The not variant product is ok !

    variant product image has src_set code added

    The resizing script the theme uses fails because of this

    Pls also add data-thumbnail=”<image id>” to the img tag after swapping the selected variant image!

    Even in the default wp theme setting a product image to 294 x 294 creates blurry images. Besides that: Why not use the original image above 294px? It is part of the src set code. Why is there a max_width set to 294 px and is this image used for all the viewpoints above 294px? then why is the original image url part of the code and not used?

    Now i have to use regenerate thumbnails in order to fix this. Bizar !

    • This topic was modified 7 years ago by BackuPs.
Viewing 1 replies (of 1 total)
  • Thread Starter BackuPs

    (@backups)

    why is there not a single-product.php or a filter for the creation of the variant images? So that we have full control of that image as well. Now woo is just grabbing the default images that are generated by the woo image settings for display single products image. But woo provides a products.image.php for any normal product to override that image. Pretty useless when using variant products as then woo is replacing the image url the product-image.php has created by javascript.

    To me this feels like a bug !

Viewing 1 replies (of 1 total)
  • The topic ‘Variant product is adding unwanted srcset code to image’ is closed to new replies.