Okay
  Public Ticket #2548005
Category Change img on hover doesn't work
Closed

Comments

  • UNBXDCreative started the conversation

    Hi,

    I can't enable On Hover Change Image. It's enabled on Customizer and admin panel but still doesn't work.


  •   UNBXDCreative replied privately
  • UNBXDCreative replied

    I've tried to set image sin different way..still no luck


  • [deleted] replied

    Dear UNBXDCreative,

    Thank you for contacting us

    We have received your ticket. We will respond to you as soon as possible

    Have a good day 

  • UNBXDCreative replied

    Just quick update - on HomePage product slider its works - just not on category page

    I found issue - it's class related bug

    2nd img on Category page has class="img-fluid img-hover-show" but when we change it to the same as on homepage to class="product-image-photo img-hover-show"  then it works.

    So basically class 'product-image-photo' is needed. Can you add it?

    UPDATE

    Ok I think I've solved the issue by adding 

    /app/design/frontend/Mgs/supro/Magento_Catalog/templates/product/list.phtml

    at line 125 

    <img src="<?php echo $productImageHoverFirst ?>" alt="<?php echo $imgAlt ?>" class="product-image-photo img-fluid img-hover-show lazy" data-src="<?php echo $productImageHover ?>"/>


    let me know if that fix is correct ?

  • [deleted] replied

    Dear UNBXDCreative,

    Thank you for your update

    I see it is working, check this product on the homepage

    https://prnt.sc/ume9mu

    let set the product image with same way you did on that product, the hover change image will works

    Please check and respond to this ticket if the problem is still not fixed yet, we will check again. If we dont get any response from you in 2 days, we would suppose the issue is fixed and close this ticket. Please feel free to open a new ticket for any other issue or questions.

    Thank you and have a good day