{% capture marquee_items %} {% if section.blocks.size > 0 %} {% for block in section.blocks %}
{% case block.settings.icon %} {% when 'payment' %} {{ 'icon-marquee-card.svg' | inline_asset_content }} {% when 'installments' %} {{ 'icon-marquee-wallet.svg' | inline_asset_content }} {{ 'icon-marquee-wallet-flap.svg' | inline_asset_content }} {{ 'icon-marquee-wallet-mark.svg' | inline_asset_content }} {% when 'guarantee' %} {{ 'icon-marquee-guarantee.svg' | inline_asset_content }} {% else %} {{ 'icon-marquee-shipping.svg' | inline_asset_content }} {% endcase %}

{{ block.settings.title }} {{ block.settings.text }}

{% endfor %} {% else %}
{{ 'icon-marquee-shipping.svg' | inline_asset_content }}

{{ 'marquee.shipping_title' | t }}{{ 'marquee.shipping_text' | t }}

{{ 'icon-marquee-card.svg' | inline_asset_content }}

{{ 'marquee.payment_title' | t }}{{ 'marquee.payment_text' | t }}

{{ 'icon-marquee-wallet.svg' | inline_asset_content }} {{ 'icon-marquee-wallet-flap.svg' | inline_asset_content }} {{ 'icon-marquee-wallet-mark.svg' | inline_asset_content }}

{{ 'marquee.installments_title' | t }}{{ 'marquee.installments_text' | t }}

{{ 'icon-marquee-guarantee.svg' | inline_asset_content }}

{{ 'marquee.guarantee_title' | t }}{{ 'marquee.guarantee_text' | t }}

{% endif %} {% endcapture %}
{{ marquee_items }}
{% schema %} { "name": "t:marquee.name", "class": "marquee-section", "disabled_on": { "groups": ["header", "footer"] }, "settings": [], "blocks": [ { "type": "item", "name": "t:marquee.item", "settings": [ { "type": "select", "id": "icon", "label": "t:marquee.icon", "default": "shipping", "options": [ { "value": "shipping", "label": "t:marquee.icon_shipping" }, { "value": "payment", "label": "t:marquee.icon_payment" }, { "value": "installments", "label": "t:marquee.icon_installments" }, { "value": "guarantee", "label": "t:marquee.icon_guarantee" } ] }, { "type": "text", "id": "title", "label": "t:marquee.title", "default": "Envío gratis" }, { "type": "text", "id": "text", "label": "t:marquee.text", "default": "Desde $699 a todo México." } ] } ], "presets": [ { "name": "t:marquee.name", "blocks": [ { "type": "item", "settings": { "icon": "shipping", "title": "Envío gratis", "text": "Desde $699 a todo México." } }, { "type": "item", "settings": { "icon": "payment", "title": "Pago seguro", "text": "Métodos confiables y cifrados." } }, { "type": "item", "settings": { "icon": "installments", "title": "Pago a plazos", "text": "Con Mercado Pago, Kueski Pay o Aplazo." } }, { "type": "item", "settings": { "icon": "guarantee", "title": "Garantía de entrega", "text": "Reenvío sin costo si algo falla." } } ] } ] } {% endschema %}