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
+44
View File
@@ -0,0 +1,44 @@
{% doc %}
Prints the category collection for a product badge.
Matches the product type to its catalog collection, such as Hidratantes or Sérum,
and skips skin labels such as Piel madura.
@param {product} product - Product whose collection is printed
@example
{% render 'product-collection-label', product: product %}
{% enddoc %}
{% liquid
assign type_handle = product.type | handleize
assign wanted = type_handle
if type_handle == 'proteccion-solar'
assign wanted = 'proteccion-solar-1'
endif
if type_handle == 'kit' or type_handle == 'kits'
assign wanted = 'kits-skincare-facial'
endif
assign label = blank
if wanted != blank
for collection_item in product.collections
if collection_item.handle == wanted
assign label = collection_item.title
break
endif
endfor
endif
if label == blank and wanted != blank
for collection_item in product.collections
if collection_item.handle contains wanted
assign label = collection_item.title
break
endif
endfor
endif
if label == blank and product.type != blank
assign label = product.type | capitalize
endif
%}
{{- label -}}