{% set oManufacturer = oView.getManufacturer() %} {% set aVariantSelections = oView.getVariantSelections() %} {% set imageStyle = oViewConf.getViewThemeParam('sImageStyle') %} {% if aVariantSelections and aVariantSelections.rawselections %} {% set _sSelectionHashCollection = "" %} {% for iKey, oSelectionList in aVariantSelections.rawselections %} {% set _sSelectionHash = "" %} {% for iPos, oListItem in oSelectionList %} {% set _sSelectionHash = _sSelectionHash ~ iPos ~ ":" ~ oListItem.hash ~ "|" %} {% endfor %} {% if _sSelectionHash %} {% if _sSelectionHashCollection %}{% set _sSelectionHashCollection = _sSelectionHashCollection ~ "," %}{% endif %} {% set _sSelectionHashCollection = _sSelectionHashCollection ~ "'" ~ _sSelectionHash ~ "'" %} {% endif %} {% endfor %}
{{ oViewConf.getHiddenSid()|raw }} {{ oViewConf.getNavFormParams()|raw }} {% if preview %} {% endif %}
{% endif %} {% hasrights { ident: "TOBASKET" } %}
{{ oViewConf.getHiddenSid()|raw }} {{ oViewConf.getNavFormParams()|raw }} {% if not oDetailsProduct.isNotBuyable() %} {% endif %} {% endhasrights %}
{# article picture with zoom #} {% block details_productmain_zoom %} {% include "page/details/inc/gallery.html.twig" %} {% endblock %}
{% block details_productmain_manufacturersicon %} {% if oManufacturer %} {{ oManufacturer.oxmanufacturers__oxtitle.value }} {% endif %} {% endblock %} {% block details_productmain_title %}

{{ oDetailsProduct.oxarticles__oxtitle.value }} {{ oDetailsProduct.oxarticles__oxvarselect.value }}

{% endblock %} {# ratings #} {% if oView.ratingIsActive() %} {% block details_productmain_ratings %} {% include "widget/reviews/rating.html.twig" with {itemid: "anid=" ~ oDetailsProduct.oxarticles__oxnid.value, sRateUrl: oDetailsProduct.getLink()} %} {% endblock %} {% endif %} {# short description #} {% block details_productmain_shortdesc %} {% hasrights { ident: "SHOWSHORTDESCRIPTION" } %} {% if oDetailsProduct.oxarticles__oxshortdesc.value %}

{{ oDetailsProduct.oxarticles__oxshortdesc.value }}

{% endif %} {% endhasrights %} {% endblock %} {% 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 %} {# variants | md variants #} {% block details_productmain_variantselections %} {% if aVariantSelections and aVariantSelections.selections %} {{ script({ include: "js/variants.min.js", priority: 11, dynamic: __oxid_include_dynamic }) }}
{# TODO: blHasActiveSelections is used nowhere - check if it can be removed #} {% set blHasActiveSelections = false %} {% for iKey, oList in aVariantSelections.selections %} {% if oList.getActiveSelection() %} {% set blHasActiveSelections = true %} {% endif %} {% include "widget/product/selectbox.html.twig" with {oSelectionList: oList, iKey: iKey, blInDetails: true} %} {% endfor %}
{% endif %} {% endblock %} {# selection lists #} {% block details_productmain_selectlists %} {% if oViewConf.showSelectLists() %} {% set oSelections = oDetailsProduct.getSelections() %} {% if oSelections %}
{% for oList in oSelections %} {% include "widget/product/selectbox.html.twig" with {blSubmitOnChange: false, oSelectionList: oList, sFieldName: "sel", iKey: loop.index0, blHideDefault: true, sSelType: "seldrop"} %} {% endfor %}
{% endif %} {% endif %} {% endblock %} {# article main info block #}
{# Weight #} {% if oDetailsProduct.oxarticles__oxweight.value %}
{% block details_productmain_weight %} {{ translate({ ident: "WEIGHT", suffix: "COLON" }) }} {{ oDetailsProduct.oxarticles__oxweight.value }} {{ translate({ ident: "KG" }) }} {% endblock %}
{% endif %} {# Delivery time #} {% block details_productmain_deliverytime %} {% hasrights { ident: "TOBASKET" } %} {% if oDetailsProduct.isBuyable() %} {% include "page/details/inc/deliverytime.html.twig" %} {% endif %} {% endhasrights %} {% endblock %} {# Unit Price #} {% hasrights { ident: "SHOWARTICLEPRICE" } %} {% set oUnitPrice = oDetailsProduct.getUnitPrice() %} {% block details_productmain_priceperunit %} {% if oUnitPrice %}
{{ format_price(oUnitPrice, { currency: currency }) }}/{{ oDetailsProduct.getUnitName() }}
{% endif %} {% endblock %} {% endhasrights %} {# Stock flag #} {% block details_productmain_stockstatus %}
{% if oDetailsProduct.getStockStatus() == -1 %} {% if oDetailsProduct.oxarticles__oxnostocktext.value %} {{ oDetailsProduct.oxarticles__oxnostocktext.value }} {% elseif oViewConf.getStockOffDefaultMessage() %} {{ translate({ ident: "MESSAGE_NOT_ON_STOCK" }) }} {% endif %} {% if oDetailsProduct.getDeliveryDate() %} {{ translate({ ident: "AVAILABLE_ON" }) }} {{ oDetailsProduct.getDeliveryDate() }} {% endif %} {% elseif oDetailsProduct.getStockStatus() == 1 %} {{ translate({ ident: "LOW_STOCK" }) }} {% elseif oDetailsProduct.getStockStatus() == 0 %} {% if oDetailsProduct.oxarticles__oxstocktext.value %} {{ oDetailsProduct.oxarticles__oxstocktext.value }} {% elseif oViewConf.getStockOnDefaultMessage() %} {{ translate({ ident: "READY_FOR_SHIPPING" }) }} {% endif %} {% endif %}
{% endblock %} {# vpe #} {% block details_productmain_vpe %} {% if oDetailsProduct.oxarticles__oxvpe.value > 1 %}
{{ translate({ ident: "DETAILS_VPE_MESSAGE_1" }) }} {{ oDetailsProduct.oxarticles__oxvpe.value }} {{ translate({ ident: "DETAILS_VPE_MESSAGE_2" }) }}
{% endif %} {% endblock %}
{# pers params #} {% block details_productmain_persparams %} {% if oView.isPersParam() %}
{% endif %} {% endblock %}
{% block details_productmain_watchlist %}{% endblock %} {% block details_productmain_price %} {% hasrights { ident: "SHOWARTICLEPRICE" } %} {% block details_productmain_price_value %} {% if oDetailsProduct.getPrice() %}
{% set sFrom = "" %} {% set oPrice = oDetailsProduct.getPrice() %} {% if oDetailsProduct.isParentNotBuyable() %} {% set oPrice = oDetailsProduct.getVarMinPrice() %} {% if oDetailsProduct.isRangePrice() %} {% set sFrom = "PRICE_FROM"|translate %} {% endif %} {% endif %} {{ sFrom }} {{ format_price(oPrice, { currency: currency }) }}
{% endif %} {% endblock %} {% endhasrights %} {% endblock %} {% block details_productmain_tprice %} {% hasrights { ident: "SHOWARTICLEPRICE" } %} {% if oDetailsProduct.getTPrice() %} {{ format_price(oDetailsProduct.getTPrice(), { currency: currency }) }} {% endif %} {% endhasrights %} {% endblock %} {% ifcontent ident "oxdeliveryinfo" set oCont %} {% if oView.isVatIncluded() %}
{{ translate({ ident: "PLUS_SHIPPING" }) }}{{ translate({ ident: "PLUS_SHIPPING2" }) }}
{% else %}
{{ translate({ ident: "PLUS" }) }}{{ translate({ ident: "PLUS_SHIPPING2" }) }}
{% endif %} {% endifcontent %}
{% if oDetailsProduct.loadAmountPriceInfo() %} {% include "page/details/inc/priceinfo.html.twig" %} {% endif %} {% block details_productmain_tobasket %} {% hasrights { ident: "TOBASKET" } %} {% if not oDetailsProduct.isNotBuyable() %}
{% endif %} {% endhasrights %} {% endblock %} {% block details_productmain_productlinksselector %} {% block details_productmain_productlinks %} {% endblock %} {% endblock %}
{% block details_productmain_social %}{% endblock %}
{% block details_productmain_content %}{% endblock %} {% hasrights { ident: "TOBASKET" } %}
{% endhasrights %}