{% set oCurrency = oView.getActCurrency() %}

{{ translate({ ident: "WEEK_SPECIAL" }) }}

{% set oBargainArticleList = oView.getBargainArticleList() %} {% set iBargainArticlesCount = oBargainArticleList.count() %} {% if iBargainArticlesCount > 4 %} {% set iBargainArticlesCount = 4 %} {% endif %} {% set iColIdent = 12 / iBargainArticlesCount %} {% for _product in oView.getBargainArticleList() %} {% set sBargainArtTitle = _product.oxarticles__oxtitle.value ~ " " ~ _product.oxarticles__oxvarselect.value %} {% 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" } %} {% endhasrights %} {% else %} {% endif %}
{% block widget_product_bargainitem_price %} {% hasrights { ident: "SHOWARTICLEPRICE" } %} {% set oUnitPrice = _product.getUnitPrice() %} {% set tprice = _product.getTPrice() %} {% set price = _product.getPrice() %} {% if tprice and tprice.getPrice() > price.getPrice() %} {{ translate({ ident: "REDUCED_FROM" }) }} {{ _product.getFTPrice() }} {{ oCurrency.sign }} {% endif %} {% if _product.getFPrice() %} {% set oCurrency = oView.getActCurrency() %} {{ _product.getFPrice() }} {{ oCurrency.sign }} {% if oView.isVatIncluded() %} {% if not ( _product.hasMdVariants() or (oViewConf.showSelectListsInList() and _product.getSelections(1)) or _product.getVariants() ) %}*{% endif %} {% endif %} {% endif %} {% if oUnitPrice %} {{ _product.oxarticles__oxunitquantity.value }} {{ _product.getUnitName() }} | {{ format_price(oUnitPrice, { currency: oCurrency }) }}/{{ _product.getUnitName() }} {% endif %} {% endhasrights %} {% endblock %}
{% block widget_product_bargainitem_tobasket %}
{% if not ( _product.hasMdVariants() or (oViewConf.showSelectListsInList() and _product.getSelections(1)) or _product.getVariants() ) %} {% hasrights { ident: "TOBASKET" } %} {% endhasrights %} {% endif %} {{ translate({ ident: "MORE_INFO" }) }}
{% endblock %}
{% endfor %}