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 -%}