{{ script({ include: "js/listremovebutton.min.js", priority: 10, dynamic: __oxid_include_dynamic }) }} {% block widget_product_listitem_line %} {% set product = oView.getProduct() %} {% set blDisableToCart = oView.getDisableToCart() %} {% set iIndex = oView.getIndex() %} {% set showMainLink = oView.getShowMainLink() %} {% set owishid = oView.getWishId() %} {% set removeFunction = oView.getRemoveFunction() %} {% set recommid = oView.getRecommId() %} {% set toBasketFunction = oView.getToBasketFunction() %} {% set altproduct = oView.getAltProduct() %} {% set testid = oView.getIndex() %} {% set currency = oView.getActCurrency() %} {% if showMainLink %} {% set _productLink = product.getMainLink() %} {% else %} {% set _productLink = product.getLink() %} {% endif %} {% set aVariantSelections = product.getVariantSelections("null", "null", 1) %} {% set blShowToBasket = true %} {# tobasket or more info ? #} {% if blDisableToCart or product.isNotBuyable() or (aVariantSelections and aVariantSelections.selections) or product.getVariants() or (oViewConf.showSelectListsInList() and product.getSelections(1)) %} {% set blShowToBasket = false %} {% endif %} {{ oViewConf.getNavFormParams()|raw }} {{ oViewConf.getHiddenSid()|raw }} {% if recommid %} {% endif %} {% if blShowToBasket %} {% hasrights { ident: "TOBASKET" } %} {% if owishid %} {% endif %} {% if toBasketFunction %} {% else %} {% endif %} {% if altproduct %} {% else %} {% endif %} {% endhasrights %} {% else %} {% endif %}
{% block widget_product_listitem_line_picturebox %} {{ translate({ ident: {% endblock %}
{% block widget_product_listitem_line_titlebox %} {{ product.oxarticles__oxtitle.value }} {{ product.oxarticles__oxvarselect.value }} {% endblock %} {% block widget_product_listitem_line_description %}
{% if recommid %} {{ product.text }} {% else %} {% hasrights { ident: "SHOWSHORTDESCRIPTION" } %} {{ product.oxarticles__oxshortdesc.value }} {% endhasrights %} {% endif %}
{% endblock %}
{% block widget_product_listitem_line_attributes %}
{% set oAttributes = product.getAttributes() %} {% if oAttributes|length %}
    {% for oAttr in oAttributes %}
  • {{ oAttr.oxattribute__oxtitle.value }}{{ translate({ ident: "COLON" }) }} {{ oAttr.oxattribute__oxvalue.value }}
  • {% endfor %}
{% endif %}
{% endblock %}
{% block widget_product_listitem_line_price %} {% hasrights { ident: "SHOWARTICLEPRICE" } %} {% set oUnitPrice = product.getUnitPrice() %} {% set tprice = product.getTPrice() %} {% set price = product.getPrice() %}
{% if tprice and tprice.getBruttoPrice() > price.getBruttoPrice() %} {{ format_price(product.getTPrice(), { currency: currency }) }} {% endif %} {% block widget_product_listitem_line_price_value %} {% if product.isRangePrice() %} {{ translate({ ident: "PRICE_FROM" }) }} {% set rangePrice = product.getVarMinPrice() %} {% if not product.isParentNotBuyable() %} {% set rangePrice = product.getMinPrice() %} {% endif %} {{ format_price(rangePrice, { currency: currency }) }} {% else %} {% set variantPrice = product.getVarMinPrice() %} {% if not product.isParentNotBuyable() %} {% set variantPrice = product.getPrice() %} {% endif %} {{ format_price(variantPrice, { currency: currency }) }} {% endif %} {% if oView.isVatIncluded() %} {% if not (product.hasMdVariants() or (oViewConf.showSelectListsInList() and product.getSelections(1)) or product.getVariants()) %}*{% endif %} {% endif %} {% endblock %} {% if oUnitPrice %} {{ product.oxarticles__oxunitquantity.value }} {{ product.getUnitName() }} | {{ format_price(oUnitPrice, { currency: currency }) }}/{{ product.getUnitName() }} {% elseif product.oxarticles__oxweight.value and config.getConfigParam('blShowWeightInList') %} {{ translate({ ident: "WEIGHT" }) }} {{ product.oxarticles__oxweight.value }} {{ translate({ ident: "KG" }) }} {% endif %}
{% endhasrights %} {% endblock %} {% if product.loadAmountPriceInfo() %}
{% include "page/details/inc/priceinfo.html.twig" with {oDetailsProduct: product} %}
{% endif %} {% block widget_product_listitem_line_selections %} {% if aVariantSelections and aVariantSelections.selections %}
{% for oSelectionList in aVariantSelections.selections %} {% include "widget/product/selectbox.html.twig" with { oSelectionList: oSelectionList, blSubmitOnChange: true, blHideLabel: true, productTitle: product.oxarticles__oxtitle.value, } %} {% endfor %}
{% elseif oViewConf.showSelectListsInList() %} {% set oSelections = product.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", blHideLabel: true} %} {% endfor %}
{% endif %} {% endif %} {% endblock %} {% block widget_product_listitem_line_tobasket %} {% if blShowToBasket %} {% hasrights { ident: "TOBASKET" } %}
{% 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 %}