{% if related_products == true %} {% assign hover_enabled = block.settings.show_related_products_title_on_hover %} {% else %} {% assign hover_enabled = settings.thumbnail_hover_enabled %} {% endif %} {% if type == 'block' %} {% assign object = block %} {% else %} {% assign object = section %} {% endif %} {% assign secondaryImage = product.media[1] %} {% assign collection_handles = product.collections | map: 'handle' %} {% if product.featured_media.preview_image.alt contains 'youtube' or image.alt contains 'vimeo' %} {% assign alt_text = product.title %} {% else %} {% assign alt_text = product.featured_media.preview_image.alt %} {% endif %} {% if type == 'block' %} {% assign image_crop = block.settings.image_crop %} {% else %} {% assign image_crop = section.settings.image_crop %} {% endif %} {% if align_height == true %} {% style %} .product-{{ product.id }}.thumbnail .image__container img, .product-{{ product.id }}.thumbnail .product-thumbnail__video .plyr { max-width: 100%; width: {{ height }}px; margin: 0 auto; } .shopify-model-viewer-ui model-viewer { --progress-bar-height: 2px; --progress-bar-color: {{ settings.regular_color }}; } {% endstyle %} {% endif %} {% liquid assign active_discount = true assign empty_array = "" | split: "" assign dormant_discounts = shop.metafields.app--168074346497.dormant_discounts.value | default: empty_array assign target_discount_id = product.metafields.app--168074346497.applied_discount_id.value for dormant_discount in dormant_discounts if dormant_discount == target_discount_id assign active_discount = false endif endfor assign product_price = product.price assign product_compare_at_price_max = product.compare_at_price_max assign product_compare_at_price = product.compare_at_price if active_discount assign product_price = product.metafields.app--168074346497.min_auto_discounted_price.value | default: product.price if product_price < product.price and product_compare_at_price == 0 or product_compare_at_price == blank assign product_compare_at_price = product.price endif if product_price < product.price and product_compare_at_price_max == 0 or product_compare_at_price_max == blank assign product_compare_at_price_max = product.price_max endif endif %}
{% if hover_enabled or settings.enable_quickshop %}
{{ product.title | escape }} {% if hover_enabled %}
{% if settings.display_vendor %} {{ product.vendor }} {% endif %}

{{ product.title | escape }}

{% if collection_handles contains 'coming-soon' %} {{ 'collections.general.coming_soon' | t }} {% else %} {% if product.price_varies %} {{ 'products.general.from' | t }} {% endif %} {% if product_price > 0 %} {% render 'price-element', price: product_price %} {% else %} {{ settings.free_price_text }} {% endif %} {%- assign variant = product.selected_or_first_available_variant -%} {% if product_compare_at_price_max > product_price %} {% render 'price-element', price: product_compare_at_price_max %} {% endif %} {% if settings.select_first_available_variant %} {%- assign variant_for_unit_price = product.variants | sort: 'price' | first -%} {% render 'unit-price', item: variant_for_unit_price, class: 'product-thumbnail__unit-price' %} {% endif %} {% endif %}
{% endif %} {% if settings.enable_quickshop %} {% render 'product-thumbnail__quick-shop-button', product: product %} {% endif %} {% if hover_enabled %} {% if settings.enable_shopify_collection_badges %} {% comment %}{% endcomment %} {% comment %}Judge.Me preview stars{% endcomment %} {% unless product.metafields.judgeme.badge contains "data-number-of-reviews='0'" %}
{{ product.metafields.judgeme.badge }}
{% endunless %} {% endif %} {% endif %}
{% endif %}
{% render 'product-thumbnail__product-info', product: product, collection_handles: collection_handles %}
{% render 'product-thumbnail__swatch', product: product %} {% if hover_enabled == false %} {% if settings.enable_shopify_collection_badges %} {% comment %}{% endcomment %} {% comment %}Judge.Me preview stars{% endcomment %} {% unless product.metafields.judgeme.badge contains "data-number-of-reviews='0'" %}
{{ product.metafields.judgeme.badge }}
{% endunless %} {% endif %} {% endif %}