{%- assign enable_swatches = settings.color_swatches -%} {%- assign enable_variant_lines = settings.variant_lines -%} {%- assign current_variant = product.selected_or_first_available_variant -%} {% comment %} This is for sections/product and sections/index-product {% endcomment %} {%- assign buybutton_setting = section.settings.show_payment_button -%} {% comment %} This is for templates/ajax_quickview {% endcomment %} {%- if buybutton_setting == nil -%} {% assign buybutton_setting = settings.quickview_buybutton_enable -%} {%- endif -%} {% comment %} Override buy button setting if there are selling plan groups {% endcomment %} {%- if product.selling_plan_groups.size > 0 -%} {% assign buybutton_setting = false -%} {%- endif -%} {% form 'product', product, class: 'product-form', data-swatches: enable_swatches, data-product-form: '' %} {% unless product.has_only_default_variant %}
{%- if enable_variant_lines -%} {% for option in product.options_with_values %} {%- assign downcased_option = option.name | downcase -%} {%- assign is_color = false -%} {%- if downcased_option contains 'color' or downcased_option contains 'colour' -%} {%- assign is_color = true -%} {%- endif -%} {%- if is_color and enable_swatches -%} {%- assign file_extension = 'png' -%}
{% for value in option.values %}
{% endfor %}
{%- else -%}
{% for value in option.values %}
{% endfor %}
{%- endif -%} {% endfor %} {%- else -%} {% for option in product.options_with_values %} {%- if enable_swatches -%} {%- assign downcased_option = option.name | downcase -%} {%- if downcased_option contains 'color' or downcased_option contains 'colour' -%} {%- assign file_extension = 'png' -%}
{% for value in option.values %}
{% endfor %}
{%- else -%} {%- assign downcased_option = option.name | downcase -%} {%- assign color_option = false -%} {%- if downcased_option contains 'color' or downcased_option contains 'colour' -%} {%- assign color_option = true -%} {%- endif -%}
{%- endif -%} {%- else -%} {%- assign downcased_option = option.name | downcase -%} {%- assign color_option = false -%} {%- if downcased_option contains 'color' or downcased_option contains 'colour' -%} {%- assign color_option = true -%} {%- endif -%}
{%- endif -%} {% endfor %} {% endif %}
{% endunless %}
{% if buybutton_setting %}
{{ form | payment_button }}
{% endif %}
{% endform %} {%- assign extratext2 = product.metafields.my_fields.extra_text2 | metafield_text -%} {%- if extratext2 != blank -%}
{{ pages[extratext2].content }}
{%- endif -%} {%- assign size_text = product.metafields.my_fields.extra_text | metafield_text -%} {%- if size_text != blank -%}
{{ product.metafields.my_fields.extra_text }}
{%- endif -%} {%- assign tag_alt = "BLANK" -%} {%- for tag in product.tags -%} {%- assign tag_prefix = tag | slice: 0, 5 -%} {%- if tag_prefix == "_alt_" -%} {%- assign tag_alt = tag -%} {%- break -%} {%- endif -%} {%- endfor -%} {%- unless tag_alt == "BLANK" -%} {%- assign alt_products_total = 0 -%} {%- capture products_output -%} {%- for alt_product in collections[tag_alt].products -%} {%- assign products_total = products_total | plus: 1 -%} {%- unless alt_product.id == product.id -%} {%- assign alt_products_total = alt_products_total | plus: 1 -%}
{{ alt_product.title }}
{%- endunless -%} {%- endfor -%} {%- endcapture -%} {%- endunless -%} {%- if alt_products_total > 0 -%}

Other Colours

{{ products_output }}






{%- endif -%} {%- assign size-page = product.metafields.my_fields.sizing_page | metafield_text -%} {%- if size-page != blank -%}
{% else %} {% endif %}