Snippets Collections
<label for="{{ section.id }}-{{ option.position }}-{{ forloop.index0 }}">
{{ value }}
</label>
{% if product.variants[forloop.index0].metafields.color.values and option.name == 'Color' %}
  <label for="{{ section.id }}-{{ option.position }}-{{ forloop.index0 }}" style="background-color: {{product.variants[forloop.index0].metafields.color.values}}">&nbsp;
  </label>
{% else %}
  <label for="{{ section.id }}-{{ option.position }}-{{ forloop.index0 }}">
    {{ value }}
  </label>
{% endif %}
star

Sun Feb 13 2022 13:59:25 GMT+0000 (UTC) https://websensepro.com/blog/add-color-swatches-on-shopify-product-page-dawn-theme/

#shopify #theme #dawn
star

Sun Feb 13 2022 13:56:32 GMT+0000 (UTC) https://websensepro.com/blog/add-color-swatches-on-shopify-product-page-dawn-theme/

#shopify #theme #dawn

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension