Ajustes antes de produccion

This commit is contained in:
2026-10-22 00:07:21 -06:00
parent f9666c4088
commit 1be9d16c83
124 changed files with 3540 additions and 772 deletions
+20 -1
View File
@@ -34,8 +34,27 @@
{%- endif -%}
</span>
<span class="header__predictive-copy">
{%- liquid
assign ps_variant = product.selected_or_first_available_variant
assign ps_on_sale = false
if ps_variant.compare_at_price > ps_variant.price
assign ps_on_sale = true
assign ps_saving = ps_variant.compare_at_price | minus: ps_variant.price | times: 100.0 | divided_by: ps_variant.compare_at_price | round
endif
-%}
{%- if ps_on_sale -%}
<span class="inline-flex w-fit rounded-[3px] bg-[#f8d5ce] px-1.5 py-[3px] text-[10px] font-medium uppercase leading-none text-[#e35b4c]">{{ 'header.search_sale' | t }} -{{ ps_saving }}%</span>
{%- endif -%}
<span class="header__predictive-title">{{ product.title | escape }}</span>
<span class="header__predictive-price">{{ product.price | money_without_trailing_zeros }}</span>
<span class="header__predictive-price{% if ps_on_sale %} header__predictive-price--sale{% endif %}">
{%- if ps_on_sale -%}
<span class="sr-only">{{ 'header.search_sale_price' | t }}</span>
{{ ps_variant.price | money_without_trailing_zeros }}
<s class="ml-1 text-[13px] font-normal text-[#a3a3a3]"><span class="sr-only">{{ 'header.search_regular_price' | t }}</span>{{ ps_variant.compare_at_price | money_without_trailing_zeros }}</s>
{%- else -%}
{{ product.price | money_without_trailing_zeros }}
{%- endif -%}
</span>
</span>
</a>
</li>