{% set blCanBuy = true %} {% if aVariantSelections and aVariantSelections.selections %} {% set blCanBuy = aVariantSelections.blPerfectFit %} {% if not blHasActiveSelections %} {% if not blCanBuy and not oDetailsProduct.isParentNotBuyable() %} {% set blCanBuy = true %} {% endif %} {% endif %} {% endif %}
{# product main infos left #}
{# product picture with zoom #} {% block details_productmain_combi_picture %} {% include "page/details/inc/picture.html.twig" %} {% endblock %} {# more product pictures #} {% block details_productmain_combi_morepics %} {% include "page/details/inc/morepics.html.twig" %} {% endblock %}
{# product main infos center #}
{# product title #} {% block details_productmain_combi_title %}

{{ oDetailsProduct.oxarticles__oxtitle.value }} {# {% oDetailsProduct.oxarticles__oxvarselect.value %} #}

{% endblock %} {# product number #} {% block details_productmain_combi_artnumber %}
{{ translate({ ident: "ARTNUM", suffix: "COLON" }) }} {{ oDetailsProduct.oxarticles__oxartnum.value }}
{% endblock %} {# product ratings #} {% block details_productmain_combi_ratings %} {% if oView.ratingIsActive() %}
{# todo #} {% include "widget/reviews/rating.html.twig" with {itemid: "anid=" ~ oDetailsProduct.oxarticles__oxnid.value, sRateUrl: oDetailsProduct.getLink()|raw} %}
{% endif %} {% endblock %} {# product short description #} {% block details_productmain_combi_shortdesc %} {% hasrights { ident: "SHOWSHORTDESCRIPTION" } %} {% if oDetailsProduct.oxarticles__oxshortdesc.rawValue %}
{{ oDetailsProduct.oxarticles__oxshortdesc.rawValue }}
{% endif %} {% endhasrights %} {% endblock %} {% block details_productmain_combi_modal_btn %} {% if aVariantSelections and aVariantSelections.selections %} {{ translate({ ident: "C4S_SHOW_ARTICLE_TABLE_MODAL_BTN" }) }} {% endif %} {% endblock %} {# product variants | md variants #} {% block details_productmain_combi_variantselections %} {% if aVariantSelections and aVariantSelections.selections %} {{ script({ include: "js/ox_article_variant.min.js", priority: 10, dynamic: __oxid_include_dynamic }) }}
{% set blHasActiveSelections = false %} {% for iKey, oVariantList in aVariantSelections.selections %} {% if oVariantList.getActiveSelection() %} {% set blHasActiveSelections = true %} {% endif %} {% include "widget/product/selectbox.html.twig" with {oSelectionList: oVariantList, iKey: iKey, blInDetails: true, sSelType: "selbuttons"} %} {% endfor %} {% if blHasActiveSelections %}
{{ translate({ ident: "C4S_RESET_VARIANT_SELECTION_BTN" }) }}
{% endif %}
{% endif %} {% endblock %} {# product selection lists #} {% block details_productmain_combi_selectlists %} {% if oViewConf.showSelectLists() %} {% set oSelections = oDetailsProduct.getSelections() %} {% if oSelections %}
{% for oSelectionList in oSelections %} {% include "widget/product/selectbox.html.twig" with {oSelectionList: oSelectionList, sFieldName: "sel", iKey: loop.index0, blHideDefault: true, sSelType: "seldrop"} %} {% endfor %}
{% endif %} {% endif %} {% endblock %} {# product stock information #} {% block details_productmain_combi_stockstatus %} {% include "page/details/inc/stockstatus.html.twig" %} {% endblock %} {# product stock delivery time #} {% block details_productmain_combi_deliverytime %} {% include "page/details/inc/deliverytime.html.twig" %} {% endblock %} {# includes nothing usable and is used anywhere, only for "compatibility" with outdated modules - deprecated #} {% block details_productmain_social %}{% endblock %}
{# product main infos right #}
{# product buybox #} {% block details_productmain_combi_buybox %} {% if not oDetailsProduct.isParentNotBuyable() %} {% include "page/details/inc/buybox.html.twig" %} {% endif %} {% endblock %} {# product manufacturer infos #} {% block details_productmain_combi_manufacturer %} {% include "page/details/inc/manufacturer.html.twig" %} {% endblock %} {# product links and options #} {% block details_productmain_combi_productlinks %} {% include "page/details/inc/productlinks.html.twig" %} {% endblock %}