{% set shop = oEmailView.getShop() %} {% set oViewConf = oEmailView.getViewConfig() %} {% set currency = oEmailView.getCurrency() %} {% set user = oEmailView.getUser() %} {% set oDelSet = order.getDelSet() %} {% set basket = order.getBasket() %} {% set payment = order.getPayment() %} {% set sOrderId = order.getId() %} {% set oOrderFileList = oEmailView.getOrderFileList(sOrderId) %} {% capture assign = "style" %} table.orderarticles th { white-space: nowrap; } table.orderarticles th, table.orderarticles td { border: 1px solid #d4d4d4; font-size: 13px; padding:5px; } table.orderarticles { border-collapse: collapse; } table.orderarticles thead th { background-color: #ebebeb; } table.orderarticles .odd { background-color: #ebebeb; } {% endcapture %} {% include "email/html/header.html.twig" with { title: ("PAGE_TITLE_ORDER"|translate) ~ " #" ~ order.oxorder__oxordernr.value, style: style } %} {% block email_html_order_cust_orderemail %}

{% if payment.oxuserpayments__oxpaymentsid.value == "oxempty" %} {% include_content 'oxuserordernpemail' %} {% else %} {% include_content 'oxuserorderemail' %} {% endif %}

{% endblock %} {% block email_html_order_cust_address %}
{% endblock %} {{ translate({ ident: "PRODUCT" }) }} {% set basketitemlist = basket.getBasketArticles() %} {% for basketindex, basketitem in basket.getContents() %} {% block email_html_order_cust_basketitem %} {% set basketproduct = basketitemlist[basketindex] %} {% if oViewConf.getViewThemeParam('blEmailsShowProductPictures') %} {% endif %} {% endblock %} {% endfor %} {% set iFooterColspan = 4 %} {% if oViewConf.getViewThemeParam('blEmailsShowProductPictures') %} {% set iFooterColspan = 5 %} {% endif %} {% block email_html_order_cust_voucherdiscount_top %} {% if oViewConf.getShowVouchers() and basket.getVoucherDiscValue() %} {% for voucher in order.getVoucherList() %} {% set voucherseries = voucher.getSerie() %} {% endfor %} {% endif %} {% endblock %} {% if not basket.getDiscounts() %} {% block email_html_order_cust_nodiscounttotalnet %} {% endblock %} {% block email_html_order_cust_nodiscountproductvats %} {% for key, VATitem in basket.getProductVats(false) %} {% endfor %} {% endblock %} {% block email_html_order_cust_nodiscounttotalgross %} {% endblock %} {% endif %} {% if basket.getDiscounts() %} {% if order.isNettoMode() %} {% block email_html_order_cust_discounttotalnet %} {% endblock %} {% else %} {% block email_html_order_cust_discounttotalgross %} {% endblock %} {% endif %} {% block email_html_order_cust_discounts %} {% for oDiscount in basket.getDiscounts() %} {% endfor %} {% endblock %} {% if not order.isNettoMode() %} {% block email_html_order_cust_totalnet %} {% endblock %} {% endif %} {% block email_html_order_cust_productvats %} {% for key, VATitem in basket.getProductVats() %} {% endfor %} {% endblock %} {% if order.isNettoMode() %} {% block email_html_order_cust_totalbrut %} {% endblock %} {% endif %} {% endif %} {% block email_html_order_cust_voucherdiscount %} {% if oViewConf.getShowVouchers() and basket.getVoucherDiscValue() %} {% endif %} {% endblock %} {% block email_html_order_cust_delcosts %} {% set oDeliveryCost = basket.getDeliveryCost() %} {% if oDeliveryCost and oDeliveryCost.getPrice() > 0 %} {% if oViewConf.isFunctionalityEnabled('blShowVATForDelivery') %} {% if oDeliveryCost.getVatValue() %} {% if basket.isProportionalCalculationOn() %} {% else %} {% endif %} {% endif %} {% else %} {% endif %} {% endif %} {% endblock %} {% block email_html_order_cust_paymentcosts %} {% if basket.getPayCostNet() %} {% if basket.getPayCostVat() %} {% if basket.isProportionalCalculationOn() %} {% else %} {% set iPayCostVatPercent = basket.getPayCostVatPercent() %} {% endif %} {% endif %} {% elseif basket.getFPaymentCosts() %} {% endif %} {% endblock %} {% if oViewConf.getShowGiftWrapping() %} {% block email_html_order_cust_wrappingcosts %} {% if basket.getWrappCostNet() %} {% if basket.getWrappCostVat() %} {% endif %} {% elseif basket.getFWrappingCosts() %} {% endif %} {% endblock %} {% block email_html_order_cust_giftwrapping_main %} {% if basket.getGiftCardCostNet() %} {% if basket.getGiftCardCostVat() %} {% if basket.isProportionalCalculationOn() %} {% else %} {% set iGiftCardCostVatPercent = basket.getGiftCardCostVatPercent() %} {% endif %} {% endif %} {% elseif basket.getFGiftCardCosts() %} {% endif %} {% endblock %} {% endif %} {% block email_html_order_cust_grandtotal %} {% endblock %}
{{ translate({ ident: "UNIT_PRICE" }) }} {{ translate({ ident: "QUANTITY" }) }} {{ translate({ ident: "VAT" }) }} {{ translate({ ident: "TOTAL" }) }}
{{ basketitem.getTitle()|striptags }}

{{ basketitem.getTitle() }} {% if basketitem.getChosenSelList() %}

    {% for oList in basketitem.getChosenSelList() %}
  • {{ oList.name }} {{ oList.value }}
  • {% endfor %}
{% endif %} {% if basketitem.getPersParams() %}
    {% for sVar, aParam in basketitem.getPersParams() %}
  • {{ sVar }} : {{ aParam }}
  • {% endfor %}
{% endif %}

{{ translate({ ident: "PRODUCT_NO", suffix: "COLON" }) }} {{ basketproduct.oxarticles__oxartnum.value }}

{% if oViewConf.getShowGiftWrapping() %} {% set oWrapping = basketitem.getWrapping() %}

{{ translate({ ident: "GIFT_WRAPPING" }) }}:  {% if not basketitem.getWrappingId() %} {{ translate({ ident: "NONE" }) }} {% else %} {{ oWrapping.oxwrapping__oxname.value }} {% endif %}

{% endif %} {% if blShowReviewLink %}

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

{% endif %}

{% if basketitem.getFUnitPrice() %}{{ basketitem.getFUnitPrice() }} {{ currency.sign }}{% endif %} {% if not basketitem.isBundle() %} {% set dRegUnitPrice = basketitem.getRegularUnitPrice() %} {% set dUnitPrice = basketitem.getUnitPrice() %} {% if dRegUnitPrice.getPrice() > dUnitPrice.getPrice() %}
{{ basketitem.getFRegularUnitPrice() }} {{ currency.sign }} {% endif %} {% endif %}

{% if basketitem['aDiscounts'] %}

{{ translate({ ident: "DISCOUNT" }) }} {% for oDiscount in basketitem.aDiscounts %}
{{ oDiscount.sDiscount }} {% endfor %}

{% endif %} {% if basketproduct.oxarticles__oxorderinfo.value %} {{ basketproduct.oxarticles__oxorderinfo.value }} {% endif %}
{{ basketitem.getAmount() }} {{ basketitem.getVatPercent() }}% {{ basketitem.getFTotalPrice() }} {{ currency.sign }}
{{ translate({ ident: "USED_COUPONS" }) }} {{ translate({ ident: "REBATE" }) }}
{{ voucher.oxvouchers__oxvouchernr.value }} {{ voucherseries.oxvoucherseries__oxdiscount.value }} {% if voucherseries.oxvoucherseries__oxdiscounttype.value == "absolute" %}{{ currency.sign }}{% else %}%{% endif %}
{{ translate({ ident: "TOTAL_NET" }) }} {{ basket.getProductsNetPrice() }} {{ currency.sign }}
{{ translate({ ident: "VAT_PLUS_PERCENT_AMOUNT", suffix: "COLON", args: key }) }} {{ format_price(VATitem, { currency: currency }) }}
{{ translate({ ident: "TOTAL_GROSS" }) }} {{ basket.getFProductsPrice() }} {{ currency.sign }}
{{ translate({ ident: "TOTAL_NET" }) }} {{ basket.getProductsNetPrice() }} {{ currency.sign }}
{{ translate({ ident: "TOTAL_GROSS" }) }} {{ basket.getFProductsPrice() }} {{ currency.sign }}
{% 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 %} {{ currency.sign }}
{{ translate({ ident: "TOTAL_NET" }) }} {{ basket.getProductsNetPrice() }} {{ currency.sign }}
{{ translate({ ident: "VAT_PLUS_PERCENT_AMOUNT", suffix: "COLON", args: key }) }} {{ format_price(VATitem, { currency: currency }) }}
{{ translate({ ident: "TOTAL_GROSS" }) }} {{ basket.getFProductsPrice() }} {{ currency.sign }}
{{ translate({ ident: "COUPON" }) }} {% if basket.getFVoucherDiscountValue() > 0 %}-{% endif %}{{ basket.getFVoucherDiscountValue()|replace({"-": ""}) }} {{ currency.sign }}
{{ translate({ ident: "SHIPPING_NET", suffix: "COLON" }) }} {{ format_price(oDeliveryCost.getNettoPrice(), { currency: currency }) }}
{{ translate({ ident: "BASKET_TOTAL_PLUS_PROPORTIONAL_VAT", suffix: "COLON" }) }}{{ translate({ ident: "VAT_PLUS_PERCENT_AMOUNT", suffix: "COLON", args: oDeliveryCost.getVat() }) }}{{ format_price(oDeliveryCost.getVatValue(), { currency: currency }) }}
{{ translate({ ident: "SHIPPING_COST", suffix: "COLON" }) }} {{ format_price(oDeliveryCost.getBruttoPrice(), { currency: currency }) }}
{% if basket.getPaymentCosts() >= 0 %}{{ translate({ ident: "SURCHARGE" }) }}{% else %}{{ translate({ ident: "DEDUCTION" }) }}{% endif %} {{ translate({ ident: "PAYMENT_METHOD" }) }} {{ basket.getPayCostNet() }} {{ currency.sign }}
{{ translate({ ident: "BASKET_TOTAL_PLUS_PROPORTIONAL_VAT" }) }}:{{ translate({ ident: "VAT_PLUS_PERCENT_AMOUNT", suffix: "COLON", args: iPayCostVatPercent }) }}{{ basket.getPayCostVat() }} {{ currency.sign }}
{{ translate({ ident: "SURCHARGE" }) }}: {{ basket.getFPaymentCosts() }} {{ currency.sign }}
{{ translate({ ident: "BASKET_TOTAL_WRAPPING_COSTS_NET" }) }}: {{ basket.getWrappCostNet() }} {{ currency.sign }}
{{ translate({ ident: "PLUS_VAT" }) }}: {{ basket.getWrappCostVat() }} {{ currency.sign }}
{{ translate({ ident: "GIFT_WRAPPING" }) }}: {{ basket.getFWrappingCosts() }} {{ currency.sign }}
{{ translate({ ident: "BASKET_TOTAL_GIFTCARD_COSTS_NET" }) }}: {{ basket.getGiftCardCostNet() }} {{ currency.sign }}
{{ translate({ ident: "BASKET_TOTAL_PLUS_PROPORTIONAL_VAT" }) }}:{{ translate({ ident: "VAT_PLUS_PERCENT_AMOUNT", suffix: "COLON", args: iGiftCardCostVatPercent }) }}{{ basket.getGiftCardCostVat() }} {{ currency.sign }}
{{ translate({ ident: "GREETING_CARD" }) }}: {{ basket.getFGiftCardCosts() }} {{ currency.sign }}
{{ translate({ ident: "GRAND_TOTAL" }) }} {{ basket.getFPrice() }} {{ currency.sign }}

{% block email_html_order_cust_giftwrapping %} {% if oViewConf.getShowGiftWrapping() and basket.getCard() %} {% set oCard = basket.getCard() %}
{{ translate({ ident: "YOUR_GREETING_CARD" }) }}
{{ oCard.oxwrapping__oxname.value }} {{ translate({ ident: "WHAT_I_WANTED_TO_SAY" }) }}

{{ basket.getCardMessage() }}
{% endif %} {% endblock %}

{% block email_html_order_cust_userremark %} {% if order.oxorder__oxremark.value %}

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

{{ order.oxorder__oxremark.value|escape }}


{% endif %} {% endblock %} {% block email_html_order_cust_download_link %} {% if oOrderFileList %}

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

{% for oOrderFile in oOrderFileList %}

{% if order.oxorder__oxpaid.value or not oOrderFile.oxorderfiles__oxpurchasedonly.value %} {{ oOrderFile.oxorderfiles__oxfilename.value }} {{ oOrderFile.getFileSize()|file_size }} {% else %} {{ oOrderFile.oxorderfiles__oxfilename.value }} {{ translate({ ident: "DOWNLOADS_PAYMENT_PENDING" }) }} {% endif %}

{% endfor %}
{% endif %} {% endblock %} {% block email_html_order_cust_paymentinfo_top %} {% if payment.oxuserpayments__oxpaymentsid.value != "oxempty" %}

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

{{ payment.oxpayments__oxdesc.value }} {% if basket.getPaymentCosts() %}({{ basket.getFPaymentCosts() }} {{ currency.sign }}){% endif %}


{% endif %} {% endblock %} {% block email_html_order_cust_username %}

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

{{ user.oxuser__oxusername.value }}


{% endblock %} {% block email_html_order_cust_deliveryinfo %} {% if payment.oxuserpayments__oxpaymentsid.value != "oxempty" %}

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

{{ oDelSet.oxdeliveryset__oxtitle.value }}


{% endif %} {% endblock %} {% block email_html_order_cust_paymentinfo %} {% if payment.oxuserpayments__oxpaymentsid.value == "oxidpayadvance" %}

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

{{ translate({ ident: "BANK" }) }} {{ shop.oxshops__oxbankname.value }}
{{ translate({ ident: "BANK_CODE" }) }} {{ shop.oxshops__oxbankcode.value }}
{{ translate({ ident: "BANK_ACCOUNT_NUMBER" }) }} {{ shop.oxshops__oxbanknumber.value }}
{{ translate({ ident: "BIC" }) }} {{ shop.oxshops__oxbiccode.value }}
{{ translate({ ident: "IBAN" }) }} {{ shop.oxshops__oxibannumber.value }}


{% endif %} {% endblock %} {% block email_html_order_cust_orderemailend %}

{% include_content 'oxuserorderemailend' %}

{% endblock %} {% include "email/html/footer.html.twig" %}