From f4ee05ee085c66992a6d83fd3e74d6594831a12d Mon Sep 17 00:00:00 2001 From: Jan Umbach Date: Wed, 29 May 2024 18:04:17 +0200 Subject: [PATCH] test --- snippets/product-media-gallery.liquid | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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) %} +