{% set aVariantArticles = oView.getVariantList() %} {% set sActArticleID = oView.getViewParameter('anid') %} {% set blShowToBasket = true %} {% set blCanBuy = true %} {% if blDisableToCart or oDetailsProduct.isNotBuyable() %} {% set blShowToBasket = false %} {% set blCanBuy = false %} {% endif %} {# todo full bs5 refactoring waiting ... #}
{# c4s :: variant article list #} {% if aVariantArticles|length > 0 %} {# get property titles from father product #} {% set aPropertyTitles = oDetailsProduct.oxarticles__oxvarname.value|split('|') %}
{% block details_variant_table_colgroup %} {% if sPropertyTitles is empty %} {% endif %} {% endblock %} {% block details_variant_table_head_artnum %} {% endblock %} {% block details_variant_table_head_properties %} {% if sPropertyTitles != "" and aPropertyTitles|length > 0 %} {% for sPropertyTitle in aPropertyTitles %} {% endfor %} {% endif %} {% endblock %} {% block details_variant_table_head_action %} {# popover functionality from article extensions module #} {% endblock %} {% for sArtID, oArticle in aVariantArticles %} {# get property values for each child article #} {% set aPropertyValues = oArticle.oxarticles__oxvarselect.value|split('|') %} {% block details_variant_table_artnum %} {% endblock %} {% block details_variant_table_properties %} {% if sPropertyValues != "" and aPropertyValues|length > 0 %} {# property values from article if available #} {% for sPropertyValue in aPropertyValues %} {% endfor %} {% endif %} {% endblock %} {% block details_variant_table_action %} {% endblock %} {% endfor %}
{{ translate({ ident: "ARTNUM" }) }}{{ sPropertyTitle }}Action
{% block details_variant_table_artnum_value %} {{ oArticle.oxarticles__oxartnum.value }} {% endblock %} {{ sPropertyValue }} {% include "page/details/inc/buybox_list.html.twig" %}
{% endif %}