{% block widget_product_listitem_grid %} {% set product = oView.getProduct() %} {% set blDisableToCart = oView.getDisableToCart() %} {% set iIndex = oView.getIndex() %} {% set showMainLink = oView.getShowMainLink() %} {% set currency = oView.getActCurrency() %} {% set oUnitPrice = product.getUnitPrice() %} {% set tprice = product.getTPrice() %} {% set price = product.getPrice() %} {% 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.hasMdVariants() or (oViewConf.showSelectListsInList() and product.getSelections(1)) or product.getVariants() %} {% set blShowToBasket = false %} {% endif %} {% if testid == null %} {% set testid = oView.getViewParameter('testid') %} {% endif %}
{% block widget_product_listitem_grid_gridpicture %}
{{ translate({ ident: {% if product.getMasterZoomPictureUrl(2) %} {{ translate({ ident: {% endif %} {# TODO: We should have an attribute here #} {% if tprice and tprice.getBruttoPrice() > price.getBruttoPrice() %}
sale
{% endif %} {% block widget_product_listitem_grid_tobasket %}
{% if blShowToBasket %} {% hasrights { ident: "TOBASKET" } %}
{{ 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 %}
{% endhasrights %} {% else %} {{ translate({ ident: "DETAILS" }) }} - {{ product.oxarticles__oxtitle.value }} {% endif %}
{% block widget_product_listitem_grid_addtowishlist %} {% if oxcmp_user %} {% else %} {% endif %} {% endblock %}
{% endblock %}
{% endblock %}
{% block widget_product_listitem_grid_titlebox %}
{{ product.oxarticles__oxtitle.value }} {{ product.oxarticles__oxvarselect.value }}
{% endblock %}
{% block widget_product_listitem_grid_price %} {% hasrights { ident: "SHOWARTICLEPRICE" } %} {% if tprice and tprice.getBruttoPrice() > price.getBruttoPrice() %} {{ format_price(product.getTPrice(), { currency: currency }) }} {% endif %} {% block widget_product_listitem_grid_price_value %} {% if product.getPrice() %} {% 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 %} {% endif %} {% endblock %} {% endhasrights %} {% if oUnitPrice %}

{{ format_price(oUnitPrice, { currency: currency }) }}/{{ product.getUnitName() }}

{% endif %} {% endblock %}
{% if oUnitPrice or (product.oxarticles__oxweight.value and config.getConfigParam('blShowWeightInList'))%}
{% if oUnitPrice %} {{ product.oxarticles__oxunitquantity.value }} {{ product.getUnitName() }}
{% elseif product.oxarticles__oxweight.value and config.getConfigParam('blShowWeightInList') %} {{ translate({ ident: "WEIGHT" }) }} {{ product.oxarticles__oxweight.value }} {{ translate({ ident: "KG" }) }} {% endif %}
{% endif %}
{{ product.oxarticles__oxshortdesc.value }}
{% endblock %}