From 373899d5ce910eeca3be4e361786ed82b12fb9d9 Mon Sep 17 00:00:00 2001 From: Jan Umbach Date: Wed, 29 May 2024 17:42:01 +0200 Subject: [PATCH] test --- snippets/product-media-gallery.liquid | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/snippets/product-media-gallery.liquid b/snippets/product-media-gallery.liquid index 858af4c..ddb1c4f 100644 --- a/snippets/product-media-gallery.liquid +++ b/snippets/product-media-gallery.liquid @@ -67,12 +67,17 @@ 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 %} + {%- for media in product.media -%} {%- unless media.id == product.selected_or_first_available_variant.featured_media.id -%} {%- endif -%}