Hej there Ismael,
We managed to add your function to the js event and it fixed the issue.
Thanks for the assistance!
Cheers,
Michel
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
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