Support » Plugin: WooCommerce » Variation product zoom not working if parent product image not set

  • Resolved acmdesigns


    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:

    1. Create a variable product, leave parent product image empty.
    2. 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.

    • This topic was modified 2 months ago by acmdesigns.
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.