Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #978456

    Good afternoon,

    I’m using the plugin (https://woocommerce.com/products/composite-products/). When you click on the thumbnail in the private section you’ll see that the small thumbnail in the configurator opens in a lightbox just fine. But as soon as I swap to another option the lightbox class gets removed and it opens in my current tab. Ofcourse I first asked the developers of Woocommerce how this happens, but they told me they test everything in the Storefront theme and there it works fine. They suggested me to contact the developers of the theme and that brings me here. Our programmers are unable to hook or filter into this part and it makes it impossible for us to reach this part of the code. I really really hope you guys can help us out here.

    #978716

    Hey Michel,

    Thank you for using Enfold.

    How can we reproduce the issue? The lightbox still works when I click on the product options. You may need to re-initialize the lightbox whenever you change the options. Please ask the plugin developer if there’s a special js event that we can hook into when a product option is changed.

    //activates the prettyphoto lightbox
    if($.fn.avia_activate_lightbox){
          $('body').avia_activate_lightbox();
    }
    

    Best regards,
    Ismael

    #978788

    Hi Ismael,

    The bug occurs when you choose another option in the configurator. On a fresh loaded page it works fine, but if you choose another option it does not work anymore. What we see in the code is that the lightbox class gets removed.

    I’m going to ask the developers if they have a special js event that you can hook into.

    Thanks for the info.

    Kind regards,

    Michel

    #978838

    Hi Ismael,

    The Woocommerce plugin devs responded.

    Hey there,

    Thanks for reaching out!

    The component_selection_changed action is triggered when the product/variation selection of a component changes. If your theme authors would like any additional information about this please refer them to the JavaScript API section of our documentation: https://docs.woocommerce.com/document/composite-products/composite-products-js-api-reference/

    Hope this helps!

    Cheers,

    Jason
    Support Engineer

    #979263

    Hej there Ismael,

    We managed to add your function to the js event and it fixed the issue.

    Thanks for the assistance!

    Cheers,

    Michel

    #979269

    Hi,

    Awesome! Glad we could help!

    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    Don’t forget to bookmark Enfold Documentation for future reference.

    Thank you for using Enfold :)

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Lightbox of Composite product (woocommerce) plugin bugs inside Enfold theme’ is closed to new replies.