Variation product zoom not working if parent product image not set
-
The product zoom on a product page isn’t working for variation images if the parent product doesn’t have its own image set. If you look at this code, it only runs
wc_get_gallery_image_html()
if$product->get_image_id()
exists. Steps I’ve taken to confirm:- Create a variable product, leave parent product image empty.
- Add a variation, set the variation image.
The above doesn’t load the product zoom or magnifying glass, but if I set the parent product’s image, the zoom and magnifying glass load and work properly.
Note: I’ve disabled all other plugins and only have WooCommerce enabled and the default Storefront theme.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.