{% block widget_product_listitem_line %} {% set oProduct = oView.getProduct() %} {% set blDisableToCart = oView.getDisableToCart() %} {% set iIndex = oView.getIndex() %} {% set showMainLink = oView.getShowMainLink()|raw %} {% set oCurrency = oView.getActCurrency() %} {% set blPerfLoadPrice = oViewConf.isFunctionalityEnabled("bl_perfLoadPrice") %} {% set oParentArticle = oProduct.getParentArticle() %} {% set sArticleId = oProduct.oxarticles__oxid.value %} {% set blShowArticleNumber = oViewConf.getViewThemeParam("blShowArticleNumber") %} {% if showMainLink %} {% set sProductLink = oProduct.getMainLink()|raw %} {% else %} {% set sProductLink = oProduct.getLink()|raw %} {% endif %} {% set aVariantSelections = oProduct.getVariantSelections("null", "null", 1) %} {% set blShowToBasket = true %} {# tobasket or more info ? #} {% if blDisableToCart or oProduct.isNotBuyable() or (aVariantSelections and aVariantSelections.selections) or oProduct.getVariants() or (oViewConf.showSelectListsInList() and oProduct.getSelections(1)) %} {% set blShowToBasket = false %} {% endif %} {{ script({ include: "js/oxid/ox_list_remove_button.min.js", priority: 10, dynamic: __oxid_include_dynamic }) }}
{{ oViewConf.getNavFormParams()|raw }} {{ oViewConf.getHiddenSid()|raw }} {% if recommid %} {% endif %} {% if blShowToBasket %} {% hasrights { ident: "TOBASKET" } %} {% if owishid %} {% endif %} {% if toBasketFunction %} {% else %} {% endif %} {% endhasrights %} {% else %} {% endif %}
{% block widget_product_listitem_line_picturebox %} {{ oProduct.oxarticles__oxtitle.value }} {{ oProduct.oxarticles__oxvarselect.value }} {% endblock %}
{% block widget_product_listitem_line_titlebox %} {% endblock %} {% block widget_product_listitem_line_artnum %} {% if blShowArticleNumber %}
{{ translate({ ident: "PRODUCT_NO", suffix: "COLON" }) }} {{ oProduct.oxarticles__oxartnum.value }}
{% endif %} {% endblock %} {% block widget_product_listitem_line_attributes %} {% set oAttributes = oProduct.getAttributes() %} {% if oAttributes %}
{% set sep = ", " %} {% set result = "" %} {% set sPopOverHtml = "" %} {% for oAttribute in oAttributes %} {% set sTempTitle = oAttribute.oxattribute__oxtitle.value %} {% set sTempValue = oAttribute.oxattribute__oxvalue.value %} {% set result = result ~ sTempValue ~ sep %} {% set sPopOverTitel = "" %} {% set sPopOverValue = "" %} {% set sPopOverHtml = sPopOverHtml ~ "" ~ sPopOverTitel ~ sPopOverValue ~ "" %} {% endfor %} {% set sPopOverHtml = sPopOverHtml ~ "
" ~ sTempTitle ~ ":" ~ sTempValue ~ "
" %} {% if result %}
{{ result|trim("sep") }}
{% endif %}
{% endif %} {% endblock %} {% block widget_product_listitem_line_description %} {% if oProduct.oxarticles__oxshortdesc %}
{{ oProduct.oxarticles__oxshortdesc }}
{% endif %} {% endblock %} {% block widget_product_listitem_line_infos %}{% endblock %}
{% block widget_product_listitem_line_price %} {% if blPerfLoadPrice %} {% hasrights { ident: "SHOWARTICLEPRICE" } %} {% set oUnitPrice = oProduct.getUnitPrice() %} {% set tprice = oProduct.getTPrice() %} {% set price = oProduct.getPrice() %} {% if blDisplayWeight %} {% set oUnitPrice = oProduct.getUnitPrice() %} {% if blPerfLoadPrice and oUnitPrice %} {{ oProduct.oxarticles__oxunitquantity.value }} {{ oProduct.getUnitName() }} | {{ format_price(oUnitPrice, { currency: oCurrency }) }}/{{ oProduct.getUnitName() }} {% elseif oProduct.oxarticles__oxweight.value %} {{ translate({ ident: "WEIGHT", suffix: "COLON" }) }} {{ oProduct.oxarticles__oxweight.value }} {{ translate({ ident: "KG" }) }} {% endif %} {% endif %} {% if tprice and tprice.getBruttoPrice() > price.getBruttoPrice() %} {{ oProduct.getFTPrice() }} {{ oCurrency.sign }}
{% endif %} {% block widget_product_listitem_line_price_value %} {% if oProduct.isRangePrice() %} {{ translate({ ident: "PRICE_FROM" }) }} {% if not oProduct.isParentNotBuyable() %} {{ oProduct.getFMinPrice() }} {% else %} {{ oProduct.getFVarMinPrice() }} {% endif %} {% else %} {% if not oProduct.isParentNotBuyable() %} {{ oProduct.getFPrice() }} {% else %} {{ oProduct.getFVarMinPrice() }} {% endif %} {% endif %} {{ oCurrency.sign }} {% if oView.isVatIncluded() %} {% if not (oProduct.hasMdVariants() or (oViewConf.showSelectListsInList() and oProduct.getSelections(1)) or oProduct.getVariants()) %}*{% endif %} {% endif %}
{% endblock %} {% endhasrights %} {% endif %} {% endblock %} {% if oProduct.loadAmountPriceInfo() %}
{% include "page/details/inc/priceinfo.html.twig" with {oDetailsProduct: oProduct} %}
{% endif %} {% block widget_product_listitem_line_selections %} {% if aVariantSelections and aVariantSelections.selections %}
{% for iKey, oSelectionList in aVariantSelections.selections %} {% include "widget/product/selectbox.html.twig" with {oSelectionList: oSelectionList, sJsAction: "js-fnSubmit", blHideLabel: true} %} {% endfor %}
{% elseif oViewConf.showSelectListsInList() %} {% set oSelections = oProduct.getSelections(1) %} {% if oSelections %}
{% for oList in oSelections %} {% include "widget/product/selectbox.html.twig" with {oSelectionList: oList, sFieldName: "sel", iKey: loop.index0, blHideDefault: true, sSelType: "seldrop", sJsAction: "js-fnSubmit", blHideLabel: true} %} {% endfor %}
{% endif %} {% endif %} {% endblock %} {% block widget_product_listitem_line_tobasket %} {% if blShowToBasket %} {% hasrights { ident: "TOBASKET" } %} {% block widget_product_listitem_line_tobasket_iamount %} {% set iAmount = 1 %} {% if oProduct.oxarticles__c4sminamount.value %} {% set iAmount = oProduct.oxarticles__c4sminamount.value %} {% endif %} {% endblock %}
{% block widget_product_listitem_line_tobasket_amount %} {% endblock %} {% if oProduct.getUnitName() %} {{ oProduct.getUnitName(true) }} {# optional lang-param: "true" for multilingual unit names #} {% endif %} {% if removeFunction and (owishid and (owishid == oxcmp_user.oxuser__oxid.value)) or (wishid == oxcmp_user.oxuser__oxid.value)) or recommid) %} {% endif %}
{% endhasrights %} {% else %} {{ translate({ ident: "MORE_INFO" }) }} {% if removeFunction and (owishid and (owishid == oxcmp_user.oxuser__oxid.value)) or (wishid == oxcmp_user.oxuser__oxid.value)) or recommid) %} {% endif %} {% endif %} {% endblock %}
{% if removeFunction and (owishid and (owishid == oxcmp_user.oxuser__oxid.value)) or (wishid == oxcmp_user.oxuser__oxid.value)) or recommid) %}
{{ oViewConf.getHiddenSid()|raw }} {% if recommid %} {% endif %}
{% endif %}
{% endblock %}