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
+11 -25
View File
@@ -1,5 +1,6 @@
{% doc %}
Renders one product card for the best sellers slider.
Sold-out products are skipped so the card can always be added or bought.
@param {product} product - Product to display
@param {string} [form_suffix] - Suffix that keeps the add-to-cart form id unique
@@ -8,6 +9,7 @@
{% render 'bestsellers-card', product: product, form_suffix: section.id %}
{% enddoc %}
{% if product.available %}
{% liquid
assign variant = product.selected_or_first_available_variant
assign card_image = product.featured_image
@@ -27,29 +29,12 @@
if subtitle == blank and variant.title != 'Default Title'
assign subtitle = variant.title
endif
assign skin_label = product.metafields.custom.tipo_de_piel.value | default: product.metafields.custom.tipo_de_piel
if skin_label == blank
assign skin_label = product.metafields.custom.skin_type.value | default: product.metafields.custom.skin_type
endif
if skin_label == blank
assign skin_fallback = blank
for tag in product.tags
assign tag_label = tag | downcase
if tag_label contains 'piel'
if skin_fallback == blank
assign skin_fallback = tag
endif
if tag_label contains 'pieles' or tag_label contains 'piel '
assign skin_label = tag
break
endif
endif
endfor
if skin_label == blank
assign skin_label = skin_fallback
endif
endif
%}
{% capture collection_label %}
{% render 'product-collection-label', product: product %}
{% endcapture %}
{% liquid
assign collection_label = collection_label | strip
assign rating_value = 0
assign rating_count = 0
@@ -100,8 +85,8 @@
<div class="bestsellers__badges">
<span class="bestsellers__badge bestsellers__badge--best">{{ 'bestsellers.badge' | t }}</span>
{% if skin_label != blank %}
<span class="bestsellers__badge bestsellers__badge--skin">{{ skin_label | escape }}</span>
{% if collection_label != blank %}
<span class="bestsellers__badge bestsellers__badge--skin">{{ collection_label | escape }}</span>
{% endif %}
</div>
@@ -183,3 +168,4 @@
</div>
</article>
{% endif %}