{% set oViewConf = oEmailView.getViewConfig() %} {% set oShop, shop = oEmailView.getShop(), oEmailView.getShop() %} {% set oUser, user = oEmailView.getUser(), oEmailView.getUser() %} {% set oCurrency, currency = oEmailView.getCurrency(), oEmailView.getCurrency() %} {% set oBasket = order.getBasket() %} {% set oDelSet = order.getDelSet() %} {% set oPayment = order.getPayment() %} {% set sBaseContentSidePadding = oViewConf.getViewThemeParam("sBaseContentSidePadding") %} {% set sBaseFontSize = oViewConf.getViewThemeParam("sBaseFontSize") %} {% set sBaseFontFamily = oViewConf.getViewThemeParam("sBaseFontFamily") %} {% include "email/html/header.html.twig" with {title: "ORDER_CUST_HEADING"|translate ~ " #" ~ order.oxorder__oxordernr.value, style: style} %} {# Title #}

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

{# Order number or custom order number, date #}
{% block email_html_order_owner_ordernr %} {% if order.oxorder__oxordernr.value %} {{ translate({ ident: "C4S_ORDER_OWNER_ORDERNR", suffix: "COLON" }) }} {{ order.oxorder__oxordernr.value }} {% endif %} {% endblock %}
{{ smarty.now|date_format("%d.%m.%Y") }}
{# Customer Number #}
{{ translate({ ident: "C4S_ORDER_OWNER_CUSTNR", suffix: "COLON" }) }} {% block email_html_order_owner_custnr %}{{ oUser.oxuser__oxcustnr.value }}{% endblock %}
{# Benutzer #}
{{ translate({ ident: "C4S_ORDER_OWNER_USER", suffix: "COLON" }) }} {% if oUser.oxuser__oxfname.value or oUser.oxuser__oxlname.value %}{{ oUser.oxuser__oxfname.value }} {{ oUser.oxuser__oxlname.value }} - {% endif %}{% if oUser.oxuser__oxusername.value %}({{ oUser.oxuser__oxusername.value }}){% endif %}
 
{# Contact Person Innendienst #}
{% block email_html_order_owner_b2b_contact %}{% endblock %}
 
{# Snippet - Thank you for your order #}
{% block email_html_order_owner_orderemail %}

{% if oPayment.oxuserpayments__oxpaymentsid.value == "oxempty" %} {% include_content 'oxadminordernpemail' %} {% else %} {% include_content 'oxadminorderemail' %} {% endif %}

{% endblock %}
 
{# Basket Contents - Table #}
{{ 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 %} #} {#
#} {% if not loop.last %} {% include "email/html/inc/horizontal_line.html.twig" %} {% endif %} {% endblock %} {% endfor %}
{# End Basket Contents #} {#
 
#}
{% if not oBasket.getDiscounts() %} {% block email_html_order_owner_nodiscounttotalnet %}

{{ translate({ ident: "TOTAL_NET", suffix: "COLON" }) }}

{{ oBasket.getProductsNetPrice() }} {{ oCurrency.sign }}

{% endblock %} {% block email_html_order_owner_nodiscountproductvats %} {% for key, VATitem in oBasket.getProductVats(false) %}

{{ translate({ ident: "VAT_PLUS_PERCENT_AMOUNT", suffix: "COLON", args: key }) }}

{{ format_price(VATitem, { currency: oCurrency }) }}

{% endfor %} {% endblock %} {# {% block email_html_order_owner_nodiscounttotalgross %} #} {# #} {# #} {# #} {# #} {#
#} {#

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

#} {#
#} {#

{{ oBasket.getFProductsPrice() }} {{ oCurrency.sign }}

#} {#
#} {# {% endblock %} #} {% endif %} {% if oBasket.getDiscounts() %} {% if order.isNettoMode() %} {% block email_html_order_owner_discounttotalnet %}

{{ translate({ ident: "TOTAL_NET", suffix: "COLON" }) }}

{{ oBasket.getProductsNetPrice() }} {{ oCurrency.sign }}

{% endblock %} {% else %} {% block email_html_order_owner_discounttotalgross %}

{{ translate({ ident: "TOTAL_GROSS", suffix: "COLON" }) }}

{{ oBasket.getFProductsPrice() }} {{ oCurrency.sign }}

{% endblock %} {% endif %} {% block email_html_order_owner_discounts %} {% for oDiscount in oBasket.getDiscounts() %}

{% if oDiscount.dDiscount < 0 %}{{ translate({ ident: "SURCHARGE" }) }}{% else %}{{ translate({ ident: "DISCOUNT" }) }}{% endif %} {{ oDiscount.sDiscount }} :

{% if oDiscount.dDiscount < 0 %}{{ oDiscount.fDiscount|replace({" - ": ""}) }}{% else %}-{{ oDiscount.fDiscount }}{% endif %} {{ oCurrency.sign }}

{% endfor %} {% endblock %} {% if not order.isNettoMode() %} {% block email_html_order_owner_totalnet %}

{{ translate({ ident: "TOTAL_NET", suffix: "COLON" }) }}

{{ oBasket.getProductsNetPrice() }} {{ oCurrency.sign }}

{% endblock %} {% endif %} {% block email_html_order_owner_productvats %} {% for key, VATitem in oBasket.getProductVats() %}

{{ translate({ ident: "VAT_PLUS_PERCENT_AMOUNT", suffix: "COLON", args: key }) }}

{{ format_price(VATitem, { currency: oCurrency }) }}

{% endfor %} {% endblock %} {% if order.isNettoMode() %} {% block email_html_order_owner_totalbrut %}

{{ translate({ ident: "TOTAL_GROSS", suffix: "COLON" }) }}

{{ oBasket.getFProductsPrice() }} {{ oCurrency.sign }}

{% endblock %} {% endif %} {% endif %} {% block email_html_order_owner_delcosts %} {% set oDeliveryCost = oBasket.getDeliveryCost() %} {% if oDeliveryCost and oDeliveryCost.getPrice() > 0 %} {% if oViewConf.isFunctionalityEnabled("blShowVATForDelivery") %}

{{ translate({ ident: "SHIPPING_NET", suffix: "COLON" }) }}

{{ format_price(oDeliveryCost.getNettoPrice(), { currency: oCurrency }) }}

{% if oDeliveryCost.getVatValue() %}
{% if oBasket.isProportionalCalculationOn() %}

{{ translate({ ident: "BASKET_TOTAL_PLUS_PROPORTIONAL_VAT", suffix: "COLON" }) }}

{% else %}

{{ translate({ ident: "VAT_PLUS_PERCENT_AMOUNT", suffix: "COLON", args: oDeliveryCost.getVat() }) }}

{% endif %}

{{ format_price(oDeliveryCost.getVatValue(), { currency: oCurrency }) }}

{% endif %} {% else %}

{{ translate({ ident: "SHIPPING_COST", suffix: "COLON" }) }}

{{ format_price(oDeliveryCost.getBruttoPrice(), { currency: oCurrency }) }}

{% endif %} {% endif %} {% endblock %} {% block email_html_order_owner_voucherdiscount %} {% if oViewConf.getShowVouchers() and oBasket.getVoucherDiscValue() %}

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

{% if oBasket.getFVoucherDiscountValue() > 0 %}-{% endif %}{{ oBasket.getFVoucherDiscountValue()|replace({" - ": ""}) }} {{ oCurrency.sign }}

{% endif %} {% endblock %} {% block email_html_order_owner_paymentcosts %} {% if oBasket.getPayCostNet() %}

{% if oBasket.getPaymentCosts() >= 0 %}{{ translate({ ident: "SURCHARGE" }) }}{% else %}{{ translate({ ident: "DEDUCTION" }) }}{% endif %} {{ translate({ ident: "PAYMENT_METHOD" }) }}

{{ oBasket.getPayCostNet() }} {{ oCurrency.sign }}

{% if oBasket.getPayCostVat() %}
{% if oBasket.isProportionalCalculationOn() %}

{{ translate({ ident: "BASKET_TOTAL_PLUS_PROPORTIONAL_VAT", suffix: "COLON" }) }}

{% else %}

{{ translate({ ident: "PLUS_VAT" }) }} {{ oBasket.getPayCostVatPercent() }}{{ translate({ ident: "SHIPPING_VAT2" }) }}

{% endif %}

{{ oBasket.getPayCostVat() }} {{ oCurrency.sign }}

{% endif %} {% elseif oBasket.getFPaymentCosts() %}

{{ translate({ ident: "SURCHARGE", suffix: "COLON" }) }}

{{ oBasket.getFPaymentCosts() }} {{ oCurrency.sign }}

{% endif %} {% endblock %} {% block email_html_order_owner_grandtotal %}

{{ translate({ ident: "GRAND_TOTAL", suffix: "COLON" }) }}

{{ oBasket.getFPrice() }} {{ oCurrency.sign }}

{% endblock %}
{# End Basket Summary #} {# addresses #} {% block email_html_order_owner_addresses %}
{% block email_html_order_owner_billing_address %}

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

{% if order.oxorder__oxbillcompany.value %}{{ order.oxorder__oxbillcompany.value }}

{% endif %} {# {% if order.oxorder__oxbilllname.value or order.oxorder__oxbillfname.value %} #} {# {{ order.oxorder__oxbillsal.value|translate_salutation }} {{ order.oxorder__oxbillfname.value }} {{ order.oxorder__oxbilllname.value }}
#} {# {% endif %} #} {% if order.oxorder__oxbilladdinfo.value %}{{ order.oxorder__oxbilladdinfo.value }}
{% endif %} {% if order.oxorder__oxbillstreet.value or order.oxorder__oxbillstreetnr.value %}{{ order.oxorder__oxbillstreet.value }} {{ order.oxorder__oxbillstreetnr.value }}
{% endif %} {% if order.oxorder__oxbillstateid.value %}{{ order.oxorder__oxbillstateid.value }}{% endif %} {% if order.oxorder__oxbillzip.value or order.oxorder__oxbillcity.value %}{{ order.oxorder__oxbillzip.value }} {{ order.oxorder__oxbillcity.value }}
{% endif %} {% if order.oxorder__oxbillcountry.value %}{{ order.oxorder__oxbillcountry.value }}
{% endif %} {# {% if order.oxorder__oxbillustid.value %}{{ translate({ ident: "VAT_ID_NUMBER" }) }} {{ order.oxorder__oxbillustid.value }}
{% endif %} #} {# {% if order.oxorder__oxbillfon.value %}{{ translate({ ident: "PHONE" }) }} {{ order.oxorder__oxbillfon.value }}
{% endif %} #}

{% endblock %}
{% block email_html_order_owner_shipping_address %}

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

{% if order.oxorder__oxdelcompany.value %} {% if order.oxorder__oxdelcompany.value %}{{ order.oxorder__oxdelcompany.value }}

{% endif %} {# {% if order.oxorder__oxdellname.value or order.oxorder__oxdelfname.value %} #} {# {{ order.oxorder__oxdelsal.value|translate_salutation }} {{ order.oxorder__oxdelfname.value }} {{ order.oxorder__oxdellname.value }}
#} {# {% endif %} #} {% if order.oxorder__oxdeladdinfo.value %}{{ order.oxorder__oxdeladdinfo.value }}
{% endif %} {% if order.oxorder__oxdelstreet.value or order.oxorder__oxdelstreetnr.value %}{{ order.oxorder__oxdelstreet.value }} {{ order.oxorder__oxdelstreetnr.value }}
{% endif %} {% if order.oxorder__oxdelstateid.value or order.oxorder__oxdelzip.value or order.oxorder__oxdelcity.value %} {{ order.oxorder__oxdelstateid.value }} {{ order.oxorder__oxdelzip.value }} {{ order.oxorder__oxdelcity.value }}
{% endif %} {% if order.oxorder__oxdelcountry.value %}{{ order.oxorder__oxdelcountry.value }}
{% endif %} {% else %} {% if order.oxorder__oxbillcompany.value %}{{ order.oxorder__oxbillcompany.value }}
{% endif %} {# {% if order.oxorder__oxbilllname.value or order.oxorder__oxbillfname.value %} #} {# {{ order.oxorder__oxbillsal.value|translate_salutation }} {{ order.oxorder__oxbillfname.value }} {{ order.oxorder__oxbilllname.value }}
#} {# {% endif %} #} {% if order.oxorder__oxbilladdinfo.value %}{{ order.oxorder__oxbilladdinfo.value }}
{% endif %} {% if order.oxorder__oxbillstreet.value or order.oxorder__oxbillstreetnr.value %}{{ order.oxorder__oxbillstreet.value }} {{ order.oxorder__oxbillstreetnr.value }}
{% endif %} {% if order.oxorder__oxbillstateid.value %}{{ order.oxorder__oxbillstateid.value }}{% endif %} {% if order.oxorder__oxbillzip.value or order.oxorder__oxbillcity.value %}{{ order.oxorder__oxbillzip.value }} {{ order.oxorder__oxbillcity.value }}
{% endif %} {% if order.oxorder__oxbillcountry.value %}{{ order.oxorder__oxbillcountry.value }}
{% endif %} {% endif %}

{% endblock %}
{% endblock %} {# addresses #} {#
#} {# #} {# #} {# #} {# #} {# #} {# #} {#
#} {# #} {# #} {# #} {# #} {# #} {#
#} {#
#} {#
#} {#
#} {# Payment and Delivery Info #} {# Payment Info #} {# Delivery Info #}
{% block email_html_order_owner_paymentinfo_top %} {% if oPayment.oxuserpayments__oxpaymentsid.value != "oxempty" %}

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

{{ oPayment.oxpayments__oxdesc.value }} {% if oBasket.getPaymentCosts() %}({{ oBasket.getFPaymentCosts() }} {{ oCurrency.sign }}){% endif %}

{% endif %} {% endblock %}
{% block email_html_order_owner_deliveryinfo %} {% if oPayment.oxuserpayments__oxpaymentsid.value != "oxempty" %}

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

{{ oDelSet.oxdeliveryset__oxtitle.value }}

{% endif %} {% endblock %}
{# VKORG Address - Vertragspartner Firma #}
{% block email_html_order_owner_basketproduct_contract_partner %}{% endblock %}
{# #} {# #} {# #} {# #} {# #} {# #} {#
#} {# #} {# #} {# #} {# #} {# #} {#
#} {#
#} {#
#} {#
#} {#
#} {# Project specific messages #} {% block email_html_order_owner_custom_messages %}{% endblock %} {% block email_html_order_owner_orderemailend %}
{% ifcontent ident "oxuserorderemailend" set oCont %} {{ include(template_from_string(oCont.oxcontents__oxcontent.value)) }} {% endifcontent %}
{% endblock %} {% include "email/html/footer.html.twig" %}