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 -3
View File
@@ -3,10 +3,18 @@
Product cards for the homepage best sellers slider.
Requested as /collections/{handle}?sort_by=best-selling&view=bestsellers-data
so Shopify returns the collection in best-selling order.
Keep the page size aligned with the section maximum (12).
Page through enough products to fill the slider after sold-out items are skipped.
The section shows at most 12 cards.
{% endcomment %}
{% paginate collection.products by 12 %}
{% paginate collection.products by 50 %}
{% assign shown = 0 %}
{% for product in collection.products %}
{% render 'bestsellers-card', product: product %}
{% if product.available %}
{% render 'bestsellers-card', product: product %}
{% assign shown = shown | plus: 1 %}
{% endif %}
{% if shown >= 12 %}
{% break %}
{% endif %}
{% endfor %}
{% endpaginate %}