Product variation gallery not working correctly when build single product page

This topic has 16 replies, 4 voices, and was last updated 4 months, 1 weeks ago ago by mo

  • Avatar: MohammedHa
    mo
    Participant
    July 29, 2025 at 11:39

    Hi Xstore Support,

    We have discovered the following problem: When we enable the variation gallery and use the theme’s default template, everything works as expected.

    However, as soon as we build a custom product page using the theme builder, the product variation gallery stops working.

    We are working with a fresh WordPress installation and have no plugins activated except for Elementor, so we can rule out plugin conflicts.

    We’ve also observed the same issue on another website.

    Examples:
    Product page using default product page:
    http://vivagastro.de/produkt/produkt-2/

    Everything works fine

    Product page using single product builder (thumbnails left side): http://vivagastro.de/produkt/produkt-1/

    Product page broken, nothing works.

    Product page using single product builder (thumbnails bottom)
    http://vivagastro.de/produkt/produkt-3/

    just the lightbox dont work

    Could you kindly take a look at this? We’re currently testing features for our client shops, and this one is essential for their use cases.

    Thanks in advanced!
    Refards
    Mo

    Please, contact administrator
    for this information.
    15 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 29, 2025 at 13:12

    Hello,

    Thank you for reaching out to us.

    To assist you more effectively, we kindly request that you record a video demonstrating the issue and the steps leading to it. This will help us better understand and replicate the problem on our end.
    Upload the video on a filesharing service, for example – https://fex.net/ , and provide us with the URL.

    Warm Regards,
    The 8Theme Team

    Avatar: MohammedHa
    mo
    Participant
    July 29, 2025 at 13:37

    Hi, sure.

    Video 1: https://fex.net/s/ndc2yzx
    on this product we have variation gallery and build the product page with the single product page builder (elementor)

    you see, when we put the thumbnails on the left site, the website is broken.

    video 2: https://fex.net/s/nptbl3t

    here you can see the default product page (without single product builder) and here the variation gallery works fine.

    in summary: as soon as we use the single product builder and build our own product page and have the variation gallery activated (especially if the thumbnails are on the left), the design of the page breaks.

    But if we use the default product page, the variation gallery works

    it is a test site so if you want you can create a product with variation gallery and an single product page with image (thumbnals left) and you see, that the design breaks.

    Avatar: MohammedHa
    mo
    Participant
    July 29, 2025 at 14:15

    video 3: https://fex.net/s/bte0ldx

    here we built also with the single product builder with elementor and put the thumbnails on the bottom and the lightbox not working.

    Error summarized:

    Error 1: Single product builder with variation gallery (thumbnails left side) website design is broken.

    Error 2: Single product builder with variation gallery (thumbnails bottom website is not broken, but lightbox not working)

    only if we use the standard product page, the variation gallery works properly.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    July 31, 2025 at 06:38

    Hello, mo,

    We have updated your theme and core plugin, which should resolve the issue you were experiencing. Additionally, we kindly ask you to increase the Max Execution Time value to 180, as the current setting of 60 is insufficient for the proper saving of settings.

    Best regards,
    The 8Theme Team

    Avatar: MohammedHa
    mo
    Participant
    July 31, 2025 at 09:23

    Hi Andrew,

    thanks for your reply!
    I have updated the Max Execution Time value to 180, but still nothing changed.

    Best Regards
    Mo

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 31, 2025 at 10:50

    Hello @mo
    Please, check the issues now. Those requested ones should be fixed now. We implemented few improves in your single product builder and xstore-child/functions.php file
    Kind regards, Jack Richardson
    The 8theme’s team

    Avatar: MohammedHa
    mo
    Participant
    July 31, 2025 at 13:58

    Hi Jack,

    thanks for you reply.
    Yes, it worked but i have created a new category and for the category a new single product template.

    The problem is here again: https://vivagastro.de/produkt/testtt/

    The problem is also on our live website (private area), where we have put a lot of work on it

    Can you please check it?
    Many thanks in advanced

    ps: If you want to test this for yourself on your website:

    activate variation gallery –> put some images into the variations –> create a product page with elementor single product builder —> gallery set thumbnails on the left side –> problem appears

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 1, 2025 at 09:46

    Hello @mo,

    We hope this message finds you well.

    We would like to inform you that the solution for the Product Gallery widget on the Single Product template has been successfully implemented, as referenced in the following reply: https://www.8theme.com/topic/issue-with-thumbnail-slider-on-woocommerce-product-page/#post-436136.

    Additionally, we have applied the same custom CSS solution (https://prnt.sc/-CEbMSkkQqEA) to the specific single product layout you created. Should you wish to design new single product layouts with similar conditions, you are welcome to utilize the same approach.

    If you have any further questions or require assistance, please do not hesitate to reach out.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: MohammedHa
    mo
    Participant
    August 1, 2025 at 11:44

    Hi Jack,

    thank you for your work and help! It worked!

    But what should I do now with the other shops we have? Such as our live website or future ones.

    I also added the CSS code to the additional CSS on our live website and the design now fits, but the lightbox problem still exists (link in private area).

    Can it also be adjusted there? Or will there be an update?

    many thanks in advanced!

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 1, 2025 at 16:51

    Hello, mo,

    Unfortunately, we are unable to include this in the update. Therefore, you will need to manually copy the custom CSS to your production site. Alternatively, if you could provide us with access to your site, we would be happy to do it for you.

    Best regards,
    The 8Theme Team

    Avatar: MohammedHa
    mo
    Participant
    August 1, 2025 at 19:56

    hi,

    okay i have added custom css to our live site.
    Please have a look at it. Lightbox not working

    Thanks and have a nice weekend 🙂

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 4, 2025 at 11:11

    Hello, mo,

    Thank you for providing access. The issue appears to be related to the compatibility between Elementor Pro, WooCommerce, and the theme settings.

    To resolve this, we have added the following code to the functions.php file of your child theme.

    add_action(‘wp_footer’, ‘fix_elementor_lightbox_on_variation_change’, 100);

    function fix_elementor_lightbox_on_variation_change() {
        if ( ! is_product() ) {
            return;
        }
    
        ?>
        <script>
        jQuery(function($) {
          $(document).on('found_variation', function() {
            setTimeout(function() {
              $('.woocommerce-product-gallery__image a').each(function() {
                $(this).attr('data-elementor-open-lightbox', 'yes');
              });
    
              if (typeof elementorProFrontend !== 'undefined' &&
                  elementorProFrontend.modules &&
                  elementorProFrontend.modules.lightbox) {
                elementorProFrontend.modules.lightbox.init();
              }
            }, 1000);
          });
        });
        </script>
        <?php
    }

    Please note that this fix will also be included in the next theme update.

    Best regards,
    8Theme Team

    Avatar: MohammedHa
    mo
    Participant
    August 5, 2025 at 08:54

    Hi,

    many thanks for your help and the good support, really !

    Have a nice week

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 5, 2025 at 09:17

    Hello, mo,

    You’re most welcome! Wishing you a wonderful day ahead.

    We hope our theme is elevating your experience. If you could take a moment to leave us a glowing 5-star review on ThemeForest, it would mean the world to us. Your feedback is incredibly important and helps us continue to improve.

    You can rate us here: https://themeforest.net/downloads

    Should you have any other questions or require assistance, please don’t hesitate to contact us. Our dedicated support team is always here to help.

    Best Regards,
    8Theme’s Team

    Avatar: MohammedHa
    mo
    Participant
    August 5, 2025 at 09:27

    Thanks for the support! My topic “product variation gallery not working correctly when build single product page” has been successfully resolved.

  • Viewing 16 results - 1 through 16 (of 16 total)

The issue related to '‘product variation gallery not working correctly when build single product page’' has been successfully resolved, and the topic is now closed for further responses

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