{%- comment -%} F12: grid of all running offers (place on any page, e.g. a "Bundles" page). {%- endcomment -%} {%- assign data = app.metafields.bundle_offers.storefront.value -%} {%- assign country = localization.country.iso_code -%}
{%- if block.settings.heading != blank -%}

{{ block.settings.heading }}

{%- endif -%} {%- assign shown = 0 -%}
{%- for offer in data.offers -%} {%- if offer.cc.size > 0 -%}{%- unless offer.cc contains country -%}{%- continue -%}{%- endunless -%}{%- endif -%} {%- assign shown = shown | plus: 1 -%} {% render 'bo-card', offer: offer %} {%- endfor -%}
{%- if shown == 0 -%}

{{ 'bundle_offers.grid.empty' | t }}

{{ 'bundle_offers.grid.continue' | t }}
{%- endif -%} {%- if data.brand -%}

Bundles by Offerlyst

{%- endif -%}
{% schema %} { "name": "Bundles grid", "target": "section", "settings": [ { "type": "text", "id": "heading", "label": "Heading", "default": "Bundle offers" } ] } {% endschema %}