Product Details

{% for i in (1..7) %} {% capture current_class %}{% cycle 'product-description', 'product-details', 'product-boxcode', 'tags', 'product-with', 'product-shipping', 'product-reviews' %}{% endcapture %} {% assign show_product_tab = "show_product_tab_" | append: forloop.index %} {% assign product_tab_title = "product_tab_title_" | append: forloop.index %} {% assign product_tab_desc = "product_tab_desc_" | append: forloop.index %} {% if settings[show_product_tab] %}
{% comment %}tabs pages{% endcomment %} {% case current_class %} {% when 'product-description' %} {% assign content = product.description | remove: "[disable-icon-new]" %} {% assign content = content | remove: "[disable-icon-sale]" %} {% assign content = content | remove: "[icon-new-always]" %} {% assign content = content | append: "[EMPTY_TEXT]" %} {% if content contains '[countdown]' %} {% assign content = content | split: '[/countdown]' | last %} {% endif %} {% if content contains '[brand]' %} {% assign content = content | split: '[/brand]' | last %} {% endif %} {% if content contains '[video]' %} {% assign content = content | split: '[/video]' | last %} {% endif %} {% if content contains '[smallDescription]' %} {% assign content = content | split: '[/smallDescription]' | last %} {% endif %} {% assign content = content | remove: "[EMPTY_TEXT]" %} {{ content }} {% when 'product-details' %} {% if product.metafields.details.size > 0 %} {% for field in product.metafields.details %} {% assign fieldkey = field | first | capitalize %} {% if fieldkey contains "_" %} {% assign fieldkey = fieldkey | split: "_" %} {% assign fieldkey = fieldkey | join: " " %} {% endif %}

{{ fieldkey }}: {{ field | last }}

{% endfor %} {% else %}{% endif %} {% when 'product-boxcode' %} {% if product.metafields.boxcode.size > 0 %} {% for field in product.metafields.boxcode %} {% assign fieldkey = field | first | capitalize %} {% if fieldkey contains "_" %} {% assign fieldkey = fieldkey | split: "_" %} {% assign fieldkey = fieldkey | join: " " %} {% endif %}

{{ fieldkey }}: {{ field | last }}

{% endfor %} {% else %}{% endif %} {% when 'product-reviews' %}
{{ product.metafields.spr.reviews }}
{% when 'tags' %} {% assign collection = collections.all %} {% assign custom_url = '/collections/all/' %} {% assign disableTitle = true %} {% include 'collection-sidebar-filter-tags' %} {% else %}

{{ settings[product_tab_desc] }}

{% endcase %}
{% endif %} {% endfor %}
Scroll To Top