Skip to content

Instantly share code, notes, and snippets.

{%- assign current_variant = product.selected_or_first_available_variant -%}
{%- assign hasSpecialPrice = false -%}
{% if product.compare_at_price_max > product.price %}
{%- assign hasSpecialPrice = true -%}
{% endif %}
<div class="price-box {% if hasSpecialPrice %} has-special{% endif %}">
{% if hasSpecialPrice %}
<span class="product-compare-price">
{{- current_variant.compare_at_price | money -}}
</span>
{%- comment -%}
<!--
This is the default split(50:50) product layout
-->
{%- endcomment -%}
{% assign all_tags = product.tags | downcase %}
{% comment %}
PDP layout settings