{% 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][/countdown]' | last %} {% endif %} {% if content contains '[brand][/brand]' | last %} {% endif %} {% if content contains '[video][/video]' | last %} {% endif %} {% if content contains '[smallDescription][/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 %}