{% block widget_product_listitem_infogrid %} {% set product = oView.getProduct() %} {% set blDisableToCart = oView.getDisableToCart() %} {% set iIndex = oView.getIndex() %} {% set showMainLink = oView.getShowMainLink()|raw %} {% set oCurrency = oView.getActCurrency() %} {% if showMainLink %} {% set sProductLink = product.getMainLink()|raw %} {% else %} {% set sProductLink = product.getLink()|raw %} {% 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.hasMdVariants() or (oViewConf.showSelectListsInList() and product.getSelections(1)) or product.getVariants() %} {% 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 %} {% endhasrights %} {% else %} {% endif %}
{% block widget_product_listitem_infogrid_gridpicture %} {% endblock %}
{% block widget_product_listitem_infogrid_titlebox %} {% endblock %} {% block widget_product_listitem_infogrid_shortdesc %}
{{ product.oxarticles__oxshortdesc.rawValue }}
{% endblock %} {% block widget_product_listitem_infogrid_artnum %} {% if blShowArticleNumber %}
{{ translate({ ident: "C4S_ARTNUM_SHORT", suffix: "COLON" }) }} {{ product.oxarticles__oxartnum.value }}
{% endif %} {% endblock %} {% block widget_product_listitem_infogrid_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 = 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", sJsAction: "js-fnSubmit", blHideLabel: true} %} {% endfor %}
{% endif %} {% endif %} {% endblock %}
{% block widget_product_listitem_infogrid_price %} {% hasrights { ident: "SHOWARTICLEPRICE" } %} {% set oUnitPrice = product.getUnitPrice() %} {% set tprice = product.getTPrice() %} {% set price = product.getPrice() %} {% if tprice and tprice.getBruttoPrice() > price.getBruttoPrice() %} {{ product.getFTPrice() }} {{ oCurrency.sign }} {% endif %} {% block widget_product_listitem_infogrid_price_value %} {% if product.getFPrice() %} {% if product.isRangePrice() %} {{ translate({ ident: "PRICE_FROM" }) }} {% if not product.isParentNotBuyable() %} {{ product.getFMinPrice() }} {% else %} {{ product.getFVarMinPrice() }} {% endif %} {% else %} {% if not product.isParentNotBuyable() %} {{ product.getFPrice() }} {% else %} {{ product.getFVarMinPrice() }} {% endif %} {% endif %} {{ oCurrency.sign }} {% if oView.isVatIncluded() %} {% if not (product.hasMdVariants() or (oViewConf.showSelectListsInList() and product.getSelections(1)) or product.getVariants()) %}*{% endif %} {% endif %} {% endif %} {% endblock %} {% if oUnitPrice %} {{ product.oxarticles__oxunitquantity.value }} {{ product.getUnitName() }} | {{ format_price(oUnitPrice, { currency: oCurrency }) }}/{{ product.getUnitName() }} {% elseif product.oxarticles__oxweight.value %} {{ translate({ ident: "WEIGHT" }) }} {{ product.oxarticles__oxweight.value }} {{ translate({ ident: "KG" }) }} {% endif %} {% endhasrights %} {% endblock %}
{% block widget_product_listitem_infogrid_tobasket %}
{% if blShowToBasket %} {% hasrights { ident: "TOBASKET" } %} {% endhasrights %} {{ translate({ ident: "MORE_INFO" }) }} {% else %} {{ translate({ ident: "MORE_INFO" }) }} {% endif %}
{% endblock %}
{% endblock %}