Variations do not get parent product images
-
hi there,
We have a variable product with different variations and we do not manually assign images to each variation. Normally from woocommerce, it uses the parent product image if there is not specific image to the variation. Currently is not working and on the console we see this error message:
productImagesGallery.min.js?ver=8.1.2:1 Uncaught TypeError: Cannot read properties of null (reading 'getAttribute')
at productImagesGallery.min.js?ver=8.1.2:1:3656
at NodeList.forEach (<anonymous>)
at productImagesGallery.min.js?ver=8.1.2:1:3581
at NodeList.forEach (<anonymous>)
at woodmartThemeModule.productImagesGallery (productImagesGallery.min.js?ver=8.1.2:1:470)
at HTMLDocument.<anonymous> (productImagesGallery.min.js?ver=8.1.2:1:88)
at HTMLDocument.dispatch (jquery.min.js?ver=3.7.1:2:40035)
at v.handle (jquery.min.js?ver=3.7.1:2:38006)
at Object.trigger (jquery.min.js?ver=3.7.1:2:70124)
at HTMLDocument.<anonymous> (jquery.min.js?ver=3.7.1:2:70726)
Do you have any idea how to fix it?
Thanks
Hello,
Could you please send access to the admin panel so I can check what is wrong there?
Thank you in advance.
Kind Regards
Hi, of course, thank you. I attached below.
Hello,
Please confirm the permission for plugin deactivation and switching to the parent/default theme for testing.
Looking forward to collaborating with you!
Best Regards
You can check it. Please inform me if anything gone wrong.
Hello,
The first issue is that you use elements from Elementor Pro in our layouts, so it may cause issues. I suggest you use only our elements in the Product layout.
The second issue is that the YITH WooCommerce Product Add-ons affects the gallery, it adds some additional styles or something else and it causes the issue.
I suggest you define the gallery via the theme’s element in the layout, and disable the customization for the gallery that comes from YITH WooCommerce Product Add-ons.
Kind Regards