{%- liquid assign se_id = section.id assign se_stts = section.settings -%}
{% if se_stts.title != blank %}
{{ se_stts.title }}
{% endif %}
{%- for block in section.blocks -%} {%- assign product = all_products[block.settings.product] -%}
{% if product.featured_image %} {{ product.featured_image | image_url: width: 500 | image_tag: loading: 'lazy', class: 'product-card__img' }} {% endif %}
{{ product.title }}
{{ product.price | money }}
{%- endfor -%}
{% schema %} { "name": "Product Carousel", "settings": [ { "type": "text", "id": "title", "label": "Heading", "default": "Featured Products" }, { "type": "text", "id": "custom_class", "label": "Custom Class" }, { "type": "range", "id": "slides_per_view_pc", "label": "Products Per View (Desktop)", "min": 2, "max": 6, "step": 1, "default": 4 }, { "type": "range", "id": "slides_per_view_mb", "label": "Products Per View (Mobile)", "min": 1, "max": 3, "step": 1, "default": 2 }, { "type": "style.spacing_panel", "id": "spacing", "label": "Section Spacing" } ], "blocks": [ { "type": "product", "name": "Product", "settings": [ { "type": "product", "id": "product", "label": "Product" } ] } ], "presets": [ { "name": "Product Carousel", "blocks": [ { "type": "product" }, { "type": "product" }, { "type": "product" } ] } ] } {% endschema %}