Hello @Juan Alberto Montoya,
Thank you for reaching out to us and for providing a detailed explanation of your custom implementation.
We understand that your script works correctly on the single product page but does not function as expected within the Quick View popup. This behavior is likely due to the fact that the Quick View content is loaded dynamically via AJAX, and therefore, the DOMContentLoaded event does not fire again when the popup is opened. As a result, your script does not reinitialize in that context.
To resolve this, we recommend the following to reinitialize Your Script on Quick View Load
Our theme triggers a custom event when the Quick View content is loaded. You can listen for this event and re-run your script accordingly. Please use the following JavaScript snippet as a starting point:
jQuery(document).on('etheme_quick_view_content_loaded', function() {
// Your custom script logic here
});
This event is triggered after the Quick View content is fully loaded and inserted into the DOM. You can use this hook to parse your JSON maps and inject the price and shipping icon into the swatches within the Quick View.
We hope this helps you adapt your custom solution to work seamlessly with the Quick View feature. Please don’t hesitate to contact us again if you have any additional questions or need further clarification.
Best Regards,
8Theme’s Team















