After woocommerce update: Hover images have disappeared

This topic has 26 replies, 2 voices, and was last updated 6 years, 1 months ago ago by Rose Tyler

  • Avatar: Royalty
    Royalty
    Participant
    February 13, 2018 at 13:14

    Hello,
    I just updated woocommerce (v. 3.3.1) and noticed that the hover effect images have disappeared. When I check it with developer tools, it shows this:
    <img class="show image" src="" class="show-image" alt="">
    So the src is empty, it shows no image.
    How can I fix this?
    Thank you.

    25 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 13, 2018 at 13:28

    Hello,

    3.4 theme version is not compatible with WC 3.3.1, so you may face some problem. You can downgrade WC version or wait for theme update, that will be released soon (within 1 week).

    Regards

    Avatar: Royalty
    Royalty
    Participant
    February 13, 2018 at 13:30

    Ok, hoping that the update will fix this. Downgrading is not that easy because the new woocommerce version made database changes. But I could use a backup..

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 13, 2018 at 13:33

    Ok. Feel free to ask if you have any other questions.

    Regards

    Avatar: Royalty
    Royalty
    Participant
    February 16, 2018 at 20:07

    Just updated my testpage to royal version 4.0, but the problem with missing hover images still exists 🙁

    Avatar: Royalty
    Royalty
    Participant
    February 17, 2018 at 20:41

    Just wanted to admit that the hover (swap) images have not only disappeared from shop page, but also from the etheme (related products) slider…

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 19, 2018 at 08:32

    Hello,

    Please provide us with your website URL so we can take a closer look.

    Regards

    Avatar: Royalty
    Royalty
    Participant
    February 19, 2018 at 10:40

    Dear Rose,
    please find all information in private content. Thank you.

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 19, 2018 at 12:22

    Hello,

    We’ve made some changes in royal/woocommerce/content-product.php and royal/woocommerce/content-product-slider.php files. The swap image will be got automatically from product gallery. Please add this css code in custom css:

    .product-slide .product-image-wrapper.hover-effect-swap:hover img.show-image + img {
        opacity: 0 !important;
    }

    and check.

    Regards

    Avatar: Royalty
    Royalty
    Participant
    February 19, 2018 at 12:25

    Thank you but now it shows the second product gallery image as hover image and not the one that I set as hover image..

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 19, 2018 at 13:17

    Hello,

    Yes, you are right. We are planning to add this improvement in next theme update.

    Regards

    Avatar: Royalty
    Royalty
    Participant
    February 19, 2018 at 13:19

    Ok but it used to work until the last update of Royal and woocommerce. How can I fix this now?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 19, 2018 at 16:16

    Hello,

    We have fixed the problem on your site. If you do not set swap image, the second product gallery image will be shown, but if you select an image in product settings it will work also.
    Is this ok for you?

    Regards

    Avatar: Royalty
    Royalty
    Participant
    February 19, 2018 at 16:18

    Thank you, that would be ok but now there are multiple error messages on the shop page :/

    Avatar: Royalty
    Royalty
    Participant
    February 19, 2018 at 16:21

    Ah seems that you just fixed it, thank you.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 19, 2018 at 16:22

    Hello,

    Please check now.

    Regards

    Avatar: Royalty
    Royalty
    Participant
    February 19, 2018 at 16:30

    Thank you. Can you please fix it for content-product-slider.php too?
    And will this be fixed in the next update? The perfect solution would be if it was like it was before: Show the swap image if there is one, and if there is none, just do nothing and keep the main product image.
    Thank you.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 19, 2018 at 16:35

    Hello,

    You’re welcome!
    To fix this for the slider please add the css code that we provided.
    Ok.

    Regards

    Avatar: Royalty
    Royalty
    Participant
    February 19, 2018 at 16:40

    Ok, unfortunately its still not working perfectly. The swap images have other dimensions than the main images, although they are both 1000x1000px. The main product image is shown square, and the swap image as cropped to a rectangle… 🙁
    Many thanks for your support.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 20, 2018 at 08:43

    Hello,

    We have checked this situation and this a bit strange, because on my test site all works fine. Please regenerate images using appropriate plugin, if this won’t help, try to change permissions on wp-content/uploads folder to 777 or ask about this your hosting provider support.

    Regards

  • 1 2
    Viewing 20 results - 1 through 20 (of 26 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.