diff --git a/snippets/product-thumbnail.liquid b/snippets/product-thumbnail.liquid index 03ca533..31b5881 100644 --- a/snippets/product-thumbnail.liquid +++ b/snippets/product-thumbnail.liquid @@ -135,8 +135,7 @@ {% if is_shx_video %} {%render "shx-video", - video_src: media.sources[0].url, - thumbnail_src: media.preview_image | image_url: width: 1946%} + media: media%} {% else %} diff --git a/snippets/shx-video.liquid b/snippets/shx-video.liquid index b3a1c71..42cebd1 100644 --- a/snippets/shx-video.liquid +++ b/snippets/shx-video.liquid @@ -1,12 +1,9 @@ -{% assign video_src = video_src | default: '' %} -{% assign video_src = thumbnail_src | default: '' %} +{% assign media = media %} {% if video_src != 'none' %}
-
{% endif %} \ No newline at end of file