| {{ translate({ ident: "PRODUCT" }) }} |
|
| {{ translate({ ident: "QUANTITY" }) }} |
|
| {{ translate({ ident: "UNIT_PRICE" }) }} |
|
{{ translate({ ident: "TOTAL" }) }} |
|
{% set basketitemlist = oBasket.getBasketArticles() %}
{% for basketindex, basketitem in oBasket.getContents() %}
{% set oArticle = basketitem.getArticle() %}
{% set oAttributes = oArticle.getAttributesDisplayableInBasket() %}
{% set oAttributesinBasket = oArticle.getAttributesDisplayableInBasket() %}
{% block email_html_order_owner_basketitem %}
{% set basketproduct = basketitemlist[basketindex] %}
{% set oParentArticle = basketproduct.getParentArticle() %}
{% if oParentArticle %}
{% set oParentHomeCategory = oParentArticle.getCategory() %}
{% else %}
{% set oHomeCategory = basketproduct.getCategory() %}
{% endif %}
{{ basketproduct.oxarticles__oxtitle.value }} {# article (or if article has no title) parent article title #}
{# {{ basketitem.getTitle() }} #} {# article title with variant informations #}
{% block email_html_order_owner_basketproduct_artnum %}
{% if basketproduct.oxarticles__oxartnum.value %}
{{ translate({ ident: "C4S_ARTNUM_SHORT", suffix: "COLON" }) }}
{{ basketproduct.oxarticles__oxartnum.value }}
{% endif %}
{% endblock %}
{% block email_html_order_owner_basketproduct_attributes %}
{% if oAttributesinBasket %}
{% set sep = ", " %}
{% set result = "" %}
{% for oArtAttributes, oAttr in oAttributes.getArray() %}
{% set sTempTitle = oAttr.oxattribute__oxtitle.value %}
{% set sTempValue = oAttr.oxattribute__oxvalue.value %}
{% set result = result ~ sTempValue ~ sep %}
{% endfor %}
{% if result %}
{{ result|trim("sep") }}
{% endif %}
{% endif %}
{% endblock %}
{% block email_html_order_owner_basketproduct_shortdesc %}
{% if basketproduct.oxarticles__oxshortdesc %}
{{ basketproduct.oxarticles__oxshortdesc }}
{% endif %}
{% endblock %}
|
|
| {{ basketitem.getAmount() }} |
|
{% if basketitem.getFUnitPrice() %}{{ basketitem.getFUnitPrice() }} {{ oCurrency.sign }}{% endif %}
{% if not basketitem.isBundle() %}
{% set oRegUnitPrice = basketitem.getRegularUnitPrice() %}
{% set oUnitPrice = basketitem.getUnitPrice() %}
{% if oRegUnitPrice.getPrice() > oUnitPrice.getPrice() %}
{{ basketitem.getFRegularUnitPrice() }} {{ oCurrency.sign }}
{% endif %}
{% endif %}
|
|
|
{% block email_html_order_owner_basketproduct_totalprice %}
{{ basketitem.getFTotalPrice() }} {{ oCurrency.sign }}
{% endblock %}
|
|
{#
|
{% block email_html_order_owner_basketproduct_discount %}{% endblock %}
|
|
|
#}
{# #}
{# #}
{# #}
{# #}
{# #}
{# #}
{# | #}
{% block email_html_order_owner_basketproduct_extras %}{% endblock %}
{# | #}
{# | #}
{# #}
{# #}
{# | #}
{# #}
{# #}
{# #}
{#
| #}
{# {% block email_html_order_owner_basketproduct_total %} #}
{# {{ translate({ ident: "C4S_ORDER_CUST_TOTAL_POSITION" }) }} {{ basketitem.getFTotalPrice() }} {{ oCurrency.sign }} #}
{# {% endblock %} #}
{# |
|
| #}
{#
#}
{% endblock %}
{# c4s :: additional price conditions #}
{# build condition rows with conditions from order simulation (contains in session basket only) #}
{% if oViewConf.isModuleActive("c4s_order_simulation") %}
{# conditions #}
{% block email_html_order_cust_basketproduct_extras %}
{% if oViewConf.showSimulationConditions() %}
{# Zu / Abschläge - Ăberschrift #}
|
{{ translate({ ident: "C4S_ORDER_SIMULATION_RESULT_SURCHARGES" }) }}
|
|
|
{% if not oBasketItem.hasConditions() %}0,00 {{ oCurrency.sign }}{% endif %}
|
|
{% if oBasketItem.hasConditions() %}
{% for basketindex, oCondition in oBasketItem.getConditions() %}
{% if oCondition.getKind() == " + " %}
|
{{ oCondition.getDescription() }}
|
|
|
+ {{ oCondition.getValue()|number_format(2, ",", ".") }} {{ oCurrency.sign }}
|
|
{% elseif oCondition.getKind() == " - " %}
|
{{ oCondition.getDescription() }} ({{ oCondition.getRate() }}%)
|
|
|
− {{ oCondition.getValue()|number_format(2, ",", ".") }} {{ oCurrency.sign }}
|
|
{% endif %}
{% endfor %}
{% endif %}
|
{{ translate({ ident: "C4S_ORDER_SIMULATION_RESULT_TOTALPRICE" }) }}
|
|
|
{% set oSimulationArticle = oBasketItem.getSimulationArticle() %}
{% if oSimulationArticle and oSimulationArticle.getNetPositionSum() %}
{{ oSimulationArticle.getNetPositionSum()|number_format(2, ",", ".") }}
{% else %}
{{ oBasketItem.getFTotalPrice() }}
{% endif %}
{{ oCurrency.sign }}
|
|
{% endif %}
{% endblock %}
{% endif %}
{% if not loop.last %}
{% include "email/html/inc/horizontal_line.html.twig" %}
{% endif %}
{% endfor %}
|
|
|