{%- 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 %}
Other Colours