-
-{%- endif -%}
+{%- endif -%}
\ No newline at end of file
diff --git a/snippets/card-product.liquid b/snippets/card-product.liquid
index 7516330..382219d 100644
--- a/snippets/card-product.liquid
+++ b/snippets/card-product.liquid
@@ -36,8 +36,7 @@
endif
-%}
+ " style="--ratio-percent: {{ 1 | divided_by: ratio | times: 100 }}%;">
+
{%- if show_image == true and article.image -%}
@@ -152,4 +144,4 @@
+ style="padding-bottom: {{ 1 | divided_by: article.image.aspect_ratio | times: 100 }}%;"
+ {% endif %}>
{% comment %}theme-check-disable ImgLazyLoading{% endcomment %}
+ height="{{ article.image.height }}">
{% comment %}theme-check-enable ImgLazyLoading{% endcomment %}
-
-
+ " style="--ratio-percent: {{ 1 | divided_by: ratio | times: 100 }}%;">
+
{%- if card_product.featured_media -%}
@@ -106,32 +100,24 @@
- {% comment %}theme-check-disable ImgLazyLoading{% endcomment %}
+ {% comment %}theme-check-disable ImgLazyLoading{% endcomment %}
+ height="{{ card_product.featured_media.height }}">
{% comment %}theme-check-enable ImgLazyLoading{% endcomment %}
{%- if card_product.media[1] != null and show_secondary_image -%}
-
+ {%- echo card_product.media[1] | media_tag: image_size: "2048x", autoplay: true, loop: true, controls: false, preload: "none" -%}
+ {% comment %}
{% endcomment %}
{%- endif -%}
+ id="title-{{ section_id }}-{{ card_product.id }}" + {% endif %}> + aria-labelledby="StandardCardNoMediaLink-{{ section_id }}-{{ card_product.id }} NoMediaStandardBadge-{{ section_id }}-{{ card_product.id }}"> {{ card_product.title | escape }}
{%- if card_product.available == false -%}
-
+
{{- 'products.product.sold_out' | t -}}
{%- elsif card_product.compare_at_price > card_product.price and card_product.available -%}
-
+
{{- 'products.product.on_sale' | t -}}
{%- endif -%}
@@ -143,15 +129,13 @@
+ id="title-{{ section_id }}-{{ card_product.id }}" + {% endif %}> + aria-labelledby="CardLink-{{ section_id }}-{{ card_product.id }} Badge-{{ section_id }}-{{ card_product.id }}"> {{ card_product.title | escape }}
@@ -176,13 +160,11 @@ {%- endif -%} - {% render 'price', product: card_product, price_class: '', show_compare_at_price: true %} + {% render 'price' + , product: card_product + , price_class: '' + , show_compare_at_price: true %} {%- if card_product.quantity_price_breaks_configured? -%}
{{ 'products.product.volume_pricing.note' | t }}
@@ -225,8 +210,7 @@
class="quick-add__submit button button--full-width button--secondary{% if horizontal_quick_add %} card--horizontal__quick-add animate-arrow{% endif %}"
aria-haspopup="dialog"
aria-labelledby="{{ product_form_id }}-submit title-{{ section_id }}-{{ card_product.id }}"
- data-product-url="{{ card_product.url }}"
- >
+ data-product-url="{{ card_product.url }}">
{{ 'products.product.choose_options' | t }}
{%- if horizontal_quick_add -%}
{% render 'icon-arrow' %}
@@ -240,14 +224,12 @@
aria-label="{{ 'products.product.choose_product_options' | t: product_name: card_product.title | escape }}"
aria-modal="true"
class="quick-add-modal__content global-settings-popup"
- tabindex="-1"
- >
+ tabindex="-1">
@@ -255,12 +237,12 @@
{%- else -%}
- {%- form 'product',
- card_product,
- id: product_form_id,
- class: 'form',
- novalidate: 'novalidate',
- data-type: 'add-to-cart-form'
+ {%- form 'product'
+ , card_product
+ , id: product_form_id
+ , class: 'form'
+ , novalidate: 'novalidate'
+ , data-type: 'add-to-cart-form'
-%}
+ disabled
+ {% endif %}>