
-
AuthorPosts
-
June 27, 2018 at 3:29 pm #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.
June 28, 2018 at 4:59 am #978716Hey 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,
IsmaelJune 28, 2018 at 8:34 am #978788Hi 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
June 28, 2018 at 11:36 am #978838Hi 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-
This reply was modified 6 years, 10 months ago by
avancecommunicatie.
June 29, 2018 at 11:16 am #979263Hej there Ismael,
We managed to add your function to the js event and it fixed the issue.
Thanks for the assistance!
Cheers,
Michel
June 29, 2018 at 11:24 am #979269Hi,
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 -
This reply was modified 6 years, 10 months ago by
-
AuthorPosts
- The topic ‘Lightbox of Composite product (woocommerce) plugin bugs inside Enfold theme’ is closed to new replies.