Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author YITHEMES

    (@yithemes)

    It seem the plugin is not activated.

    Hi
    Super plugin! love it
    But I am also getting the featured image twice in the thumb gallery below main image……..

    https://www.thegallerykohphangan.com/?product=faceted-garnet-bracelet

    How can I hide this first or duplicated image?
    Thanks
    Maddie

    Thread Starter chickster25

    (@chickster25)

    I have had to untick the option “Activate YITH Magnifier” to stop the duplicate image issue from happening.

    The actual plugin is activated.

    Hi, thanks. That does prevent the duplicate but it no longer switches the featured image for the chosen thumbnail, it has reverted to opening thumbnail in lightbox. I will continue to look for a fix, I am sure I can add some code to prevent the duplicate with a bit of more work ??

    Thread Starter chickster25

    (@chickster25)

    Hello, any possible fix to this as would really like to get this working?

    Thanks

    Its complicated way beyond my coding abilities. There is a Woothemes variation swatches and photos plugin that does this plus a lot lot more but its pricey if you only need it once and not really need all the other features. I will just ask client to either live with duplicate or turn it off and live with the (yucky) lightbox!

    Plugin Author YITHEMES

    (@yithemes)

    @maddiep,
    please open a different topic, so we can understand and work on your specific problem.

    @chickster25,
    you can fix the problem avoiding to use the same image set as featured, in the gallery.

    Thread Starter chickster25

    (@chickster25)

    Hello

    thanks for your answer but that isnt going to resolve the problem as the products are loaded automatically, so it would be impossible to manually remove an image from every product gallery as there are thousands and the systems resyncs all the products & images daily anyway

    I found a beautiful solution for this after studying their code.
    Just go to your theme directory (or child-theme better if you have one) and create a folder called: single-product

    Inside that directory, copy the file product-thumbnails-magnifier.php of the yith plugin that you find in: wp-content/plugins/yith-woocommerce-zoom-magnifier/templates/single-product/product-thumbnails-magnifier.php

    There, just below the line 17 that says:

    if ( ! empty( $attachment_ids ) ) array_unshift( $attachment_ids, get_post_thumbnail_id() );

    paste the following:

    $attachment_ids = array_unique($attachment_ids);

    And voilá! It works! The problem is that the array generated in line 17 returns a duplicated ID. With my code I am just forcing this array of IDs to contain only unique numbers and not duplicated ones.

    Thread Starter chickster25

    (@chickster25)

    that’s great and it works, well done and thank you.

    Lets hope the folder doesn’t get deleted when the theme is updated.

    Why cant the plugin developer fix this?

    If you dont have a child theme activated, it will get deleted as soon as you theme is updated. Child-themes are to prevent this kind of problems. If you dont activate one, just have a copy of that file somewhere to upload it again when your theme is updated. Keep it in mind and hopefully the plugin developers will fix it soon.

    PS: pay attention on the new update of the yith plugin, if you experience something weird with the future update, remove what you just created. Or just post something in this topic and I will receive an email notifying me your problem ?? Happy to help!

    Brilliant!! Just perfect thank you. All is solved.
    Good work thanks ??
    Maddie

    Plugin Author YITHEMES

    (@yithemes)

    Thanks begona.alvarezd, we have added your fix to the updated version that has been just released.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Doubles first image’ is closed to new replies.