-
AuthorPosts
-
September 21, 2020 at 11:10 am #1247310
hi there,
on one of my shops with woocommerce i switched on the woocommerce 3.0 gallery and installed the official “WooCommerce Additional Variation Images” plugin.
usually when you click on the magnifying glass, the lightbox comes up.
but not on a product-page with variables. it seems theres is a layer on top of the magnifying glass.
i already ask the woocommerce support. they said its a theme issue.
in the privat content you find login data and two sample product-pages. one with variations (lightbox not working) and one simple product page (lightbox works)
September 22, 2020 at 5:19 am #1247513Hey Ramon,
Thanks for giving us admin access.
I have checked your site specifically the 2 links you gave and since there’s no js error in the variation it’s pretty difficult to know why it’s not working.
Inspecting the element points at the right element so there’s no blocking it with an invisible div or other element.
Can you try to setup a staging site for us? it’s a duplicate of your live site placed in your subdomain for the purpose of testing without risking your live site.
Here’s a simple tutorial you can follow: https://themeisle.com/blog/wordpress-staging-site/Best regards,
NikkoSeptember 23, 2020 at 12:17 pm #1247826hi nikko,
thx for your support.
login for the test shop below.
when i switch off the official woocommerce plugin “Additional Variation Images” the lighbox works even with variable prducts.
i also noticed that the enfold-product-gallery does not working correctly either.
September 24, 2020 at 2:08 pm #1248151Hi volmering,
Thanks for giving us a site to check upon.
Unfortunately, it seems more complicated for it to work, I found two reasons.
1. The plugin removes the link because Enfold does not support wc-product-gallery-lightbox
2. The images are fetched via AJAX, magnific popup is loaded first before the images.The only solution is to use the default lightbox of Woocommerce instead of Magnific Popup.
To do this, modify enfold > config-woocommerce > config.php (line 200) just remove the comment on this code:// add_theme_support( 'wc-product-gallery-lightbox' );
I hope this helps.
Best regards,
NikkoSeptember 24, 2020 at 2:39 pm #1248163hi nikko, thx.
is it possible to insert this code in my child theme, to make it safe for updates?
f.e. into my functions.php?
- This reply was modified 4 years, 2 months ago by volmering.
September 24, 2020 at 2:50 pm #1248170Hi volmering,
Yes, please add this in your child theme’s functions.php:
if ( did_action( 'woocommerce_init' ) ) { avia_woocommerce_product_gallery_support_setup(); } else { add_action( 'woocommerce_init', 'avia_woocommerce_product_gallery_support_setup', 10); } function avia_woocommerce_product_gallery_support_setup() { if( ! avia_woocommerce_version_check( '3.0.0' ) ) { return; } $options = avia_get_option(); if( ! array_key_exists( 'product_gallery', $options ) || ( 'wc_30_gallery' != $options['product_gallery'] ) ) { $options['product_gallery'] = ''; } if( 'wc_30_gallery' == $options['product_gallery'] ) { add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); add_theme_support( 'avia-wc-30-product-gallery-feature' ); } return; }
Best regards,
NikkoSeptember 25, 2020 at 7:22 am #1248336hi nikko,
thank you. it works.
the only thing is how the lightbox look like. i changed the bg color of the woo default. so it looks more then a lightbox :-)
is it mabe possible to fix this issue in the future? more shops are coming online. and the additional image plugin from woocommerce is a very common plugin.
September 26, 2020 at 10:12 am #1248601Hi volmering,
I don’t think a fix will be added in the future since the plugin is incompatible with our implementation of Magnific Popup.
Our developers are doing their best for plugin compatibility but they only limit it to major ones considering the time and cost it takes to make it compatible with most plugins.
I hope you would understand, for the meantime we could only provide the workaround.Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.