{%- capture product_form_id -%}product-form-{{ section.id }}-{{ product.id }}{%- endcapture -%}
{%- if section.settings.show_vendor -%}

{%- assign vendor_handle = product.vendor | handle -%} {%- assign vendor_collection = collections[vendor_handle] -%} {%- if vendor_collection != blank -%} {{ product.vendor }} {%- else -%} {{ product.vendor }} {%- endif -%}

{%- endif -%} {% unless featured %}

{{ product.title }}

{% else %}

{{ product.title }}

{% endunless %} {% liquid # start Yagi app code assign target = product.selected_or_first_available_variant assign variant_price = product.selected_or_first_available_variant.price assign variant_compare_at_price = product.selected_or_first_available_variant.compare_at_price 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 if active_discount and target.inventory_quantity > 0 assign variant_price = target.metafields.app--168074346497.auto_discounted_price.value | default: target.price if target.metafields.app--168074346497.discount_type.value != nil and target.metafields.app--168074346497.discount_type.value != "fixed" and product.metafields.app--168074346497.discount_percentage.value > 0.01 assign deducted_percentage = 1.0 | minus: product.metafields.app--168074346497.discount_percentage.value if target.metafields.app--168074346497.discount_percentage.value > 0.01 assign deducted_percentage = 1.0 | minus: target.metafields.app--168074346497.discount_percentage.value endif assign variant_price = target.price | divided_by: 100.0 | times: deducted_percentage | times: 100.0 | ceil assign variant_compare_at_price = target.price if target.compare_at_price > variant_compare_at_price assign variant_compare_at_price = target.compare_at_price endif endif if variant_price < target.price and variant_compare_at_price == blank assign variant_compare_at_price = target.price endif endif # end Yagi app code %}
{%- if variant_compare_at_price > variant_price -%} {{ 'product.general.sale_price' | t }} {%- if settings.currency_code_enabled -%} {{- variant_price | money_with_currency -}} {%- else -%} {{- variant_price | money -}} {%- endif -%} {{ 'product.general.regular_price' | t }} {%- if settings.currency_code_enabled -%} {{- variant_compare_at_price | money_with_currency -}} {%- else -%} {{- variant_compare_at_price | money -}} {%- endif -%} {%- else -%} {{ 'product.general.sale_price' | t }} {%- if settings.currency_code_enabled -%} {{- variant_price | money_with_currency -}} {%- else -%} {{- variant_price | money -}} {%- endif -%} {{ 'product.general.regular_price' | t }} {%- if settings.currency_code_enabled -%} {{- variant_compare_at_price | money_with_currency -}} {%- else -%} {{- variant_compare_at_price | money -}} {%- endif -%} {%- endif -%} {%- if product.selected_or_first_available_variant.unit_price_measurement -%}
{{ product.selected_or_first_available_variant.unit_price | money }} / {%- if product.selected_or_first_available_variant.unit_price_measurement.reference_value != 1 -%} {{ product.selected_or_first_available_variant.unit_price_measurement.reference_value }} {%- endif -%} {{ product.selected_or_first_available_variant.unit_price_measurement.reference_unit }}
{%- endif -%}
{{ product.metafields.judgeme.badge }}
{%- unless product.selected_or_first_available_variant.available -%} {{ 'collection.product.sold_out' | t }} {%- elsif product.selected_or_first_available_variant.compare_at_price > product.selected_or_first_available_variant.price -%} {%- if settings.discount_mode == 'percentage' -%} {%- assign savings = product.selected_or_first_available_variant.compare_at_price | minus: product.selected_or_first_available_variant.price | times: 100.0 | divided_by: product.selected_or_first_available_variant.compare_at_price | round | append: '%' -%} {%- else -%} {%- capture savings -%}{{ product.selected_or_first_available_variant.compare_at_price | minus: product.selected_or_first_available_variant.price | money }}{%- endcapture -%} {%- endif -%} {{ 'collection.product.discount_html' | t: savings: savings }} {%- endunless -%}
{%- if section.settings.show_taxes_included -%} {%- if cart.taxes_included or shop.shipping_policy.body != blank -%}

{%- if cart.taxes_included -%} {{ 'product.general.include_taxes' | t }} {%- endif -%} {%- if shop.shipping_policy.body != blank -%} {{ 'product.general.shipping_policy_html' | t: link: shop.shipping_policy.url }} {%- endif -%}

{%- endif -%} {%- endif -%} {%- assign product_installment_form_id = 'product-installment-form-' | append: section.id | append: '-' | append: product.id -%} {%- form 'product', product, id: product_installment_form_id -%} {{- form | payment_terms -}} {%- endform -%} {%- if section.settings.show_product_rating or section.settings.show_sku -%}
{%- if section.settings.show_product_rating -%} {%- render 'product-rating', product: product -%} {%- render 'product-rating', product: product -%} {%- endif -%} {%- if section.settings.show_sku -%} {{- 'product.general.sku' | t }} {{ product.selected_or_first_available_variant.sku }} {%- endif -%}
{%- endif -%}
{%- render 'product-form', product: product, update_url: update_url -%} {%- assign help_page = section.settings.help_page -%} {%- if section.settings.show_share_buttons or help_page != blank -%}
{%- if section.settings.show_share_buttons -%} {%- endif -%} {%- if help_page != blank -%} {%- endif -%}
{%- endif -%} {%- if help_page != blank -%} {%- comment -%}Drawer for tablet and higher{%- endcomment -%}

{{ help_page.title }}

{{- help_page.content -}}
{%- comment -%}Popover for mobile{%- endcomment -%} {%- endif -%}