diff --git a/snippets/product-media-gallery.liquid b/snippets/product-media-gallery.liquid index 48081fc..3a0f8e9 100644 --- a/snippets/product-media-gallery.liquid +++ b/snippets/product-media-gallery.liquid @@ -67,21 +67,18 @@ role="list"> {% assign media_position = 0 %} - {% assign model_index = 0 %} - {% assign video_index = 0 %} - {% assign image_index = 0 %} - {% assign first_video = product.media | where: 'media_type', 'video' | first %} - -

first_video: {{ first_video }}

+ {% assign first_videoShown = false %} {%- for media in product.media -%} {%- unless media.id == product.selected_or_first_available_variant.featured_media.id -%} + {% assign isCorrectImageWithMatchingAlt = !(product.selected_or_first_available_variant.featured_image.alt ! = media.alt and product.selected_or_first_available_variant.featured_image.alt ! = blank) %} +