Free fabric sample test form

{{ 'fabric-builder.css' | asset_url | stylesheet_tag }}

{{ section.settings.heading }}

{{ 'sections.fabric_builder.error_messages.select_samples' | t }}
{%- assign fabrics = product.metafields.custom.fabric -%} {%- assign visited_groups = '' -%} {%- for fabric in fabrics.value -%} {%- assign fabric_group = fabric.metafields.custom.fabric_group.value -%} {%- if fabric_group == blank -%} {%- continue -%} {%- endif -%} {%- unless visited_groups contains fabric_group -%} {%- unless forloop.index == 1 -%} {%- assign visited_groups = visited_groups | append: ',' -%} {%- endunless -%} {%- assign visited_groups = visited_groups | append: fabric_group -%}

{{ fabric_group }}

{%- continue -%} {%- endunless -%} {%- endfor %}

{{ 'sections.fabric_builder.summary.heading' | t }}

{% schema %} { "name": "t:sections.fabric-builder.name", "tag": "section", "class": "section", "disabled_on": { "groups": ["header", "footer"] }, "settings": [ { "type": "text", "id": "heading", "default": "Select 6 Free Fabric Samples", "label": "t:sections.fabric-builder.heading.label" } ], "presets": [ { "name": "t:sections.fabric-builder.presets.name" } ] } {% endschema %}