OXID eShop CE 4.10.1 tpl/email/plain/order_cust.tpl 
[{assign var="shop" value=$oEmailView->getShop()}]
[{assign var="oViewConf" value=$oEmailView->getViewConfig()}]
[{assign var="currency" value=$oEmailView->getCurrency()}]
[{assign var="user" value=$oEmailView->getUser()}]
[{assign var="oDelSet" value=$order->getDelSet()}]
[{assign var="basket" value=$order->getBasket()}]
[{assign var="payment" value=$order->getPayment()}]
[{assign var="sOrderId" value=$order->getId()}]
[{assign var="oOrderFileList" value=$oEmailView->getOrderFileList($sOrderId)}]
10 
11 [{block name="email_plain_order_cust_orderemail"}]
12 [{if $payment->oxuserpayments__oxpaymentsid->value == "oxempty"}]
13 [{oxcontent ident="oxuserordernpplainemail"}]
14 [{else}]
15 [{oxcontent ident="oxuserorderplainemail"}]
16 [{/if}]
17 [{/block}]
18 
19 [{oxmultilang ident="ORDER_NUMBER"}] [{$order->oxorder__oxordernr->value}]
20 
21 [{block name="email_plain_order_cust_voucherdiscount_top"}]
22 [{if $oViewConf->getShowVouchers()}]
23 [{foreach from=$order->getVoucherList() item=voucher}]
24 [{assign var="voucherseries" value=$voucher->getSerie()}]
25 [{oxmultilang ident="USED_COUPONS"}] [{$voucher->oxvouchers__oxvouchernr->value}] - [{oxmultilang ident="DISCOUNT"}] [{$voucherseries->oxvoucherseries__oxdiscount->value}] [{if $voucherseries->oxvoucherseries__oxdiscounttype->value == "absolute"}][{$currency->sign}][{else}]%[{/if}]
26 [{/foreach}]
27 [{/if}]
28 [{/block}]
29 
30 [{assign var="basketitemlist" value=$basket->getBasketArticles()}]
31 [{foreach key=basketindex from=$basket->getContents() item=basketitem}]
32 [{block name="email_plain_order_cust_basketitem"}]
33 [{assign var="basketproduct" value=$basketitemlist.$basketindex}]
34 [{$basketproduct->oxarticles__oxtitle->getRawValue()|strip_tags}][{if $basketproduct->oxarticles__oxvarselect->value}], [{$basketproduct->oxarticles__oxvarselect->value}][{/if}]
35 [{if $basketitem->getChosenSelList()}][{foreach from=$basketitem->getChosenSelList() item=oList}]
36 
37 [{$oList->name}] [{$oList->value}]
38 
39 [{/foreach}][{/if}]
40 [{if $basketitem->getPersParams()}]
41 [{foreach key=sVar from=$basketitem->getPersParams() item=aParam}]
42 
43 [{$sVar}] : [{$aParam}]
44 [{/foreach}]
45 [{/if}]
46 [{if $oViewConf->getShowGiftWrapping()}]
47 [{assign var="oWrapping" value=$basketitem->getWrapping()}]
48 
49 [{oxmultilang ident="GIFT_WRAPPING"}] [{if !$basketitem->getWrappingId()}][{oxmultilang ident="NONE"}][{else}][{$oWrapping->oxwrapping__oxname->value}][{/if}]
50 [{/if}]
51 [{if $basketproduct->oxarticles__oxorderinfo->value}]
52 [{$basketproduct->oxarticles__oxorderinfo->getRawValue()}]
53 [{/if}]
54 
55 [{assign var=dRegUnitPrice value=$basketitem->getRegularUnitPrice()}]
56 [{assign var=dUnitPrice value=$basketitem->getUnitPrice()}]
57 [{oxmultilang ident="UNIT_PRICE"}] [{$basketitem->getFUnitPrice()}] [{$currency->name}] [{if !$basketitem->isBundle()}][{if $dRegUnitPrice->getPrice() > $dUnitPrice->getPrice()}] ([{$basketitem->getFRegularUnitPrice()}] [{$currency->sign}]) [{/if}][{/if}]
58 
59 [{oxmultilang ident="QUANTITY"}] [{$basketitem->getAmount()}]
60 [{oxmultilang ident="VAT"}] [{$basketitem->getVatPercent()}]%
61 [{oxmultilang ident="TOTAL"}] [{$basketitem->getFTotalPrice()}] [{$currency->name}]
62 [{/block}]
63 [{/foreach}]
64 ------------------------------------------------------------------
65 [{if !$basket->getDiscounts()}]
66 [{block name="email_plain_order_cust_nodiscounttotalnet"}]
67 [{* netto price *}]
68 [{oxmultilang ident="TOTAL_NET"}] [{$basket->getProductsNetPrice()}] [{$currency->name}]
69 [{/block}]
70 [{block name="email_plain_order_cust_nodiscountproductvats"}]
71 [{* VATs *}]
72 [{foreach from=$basket->getProductVats() item=VATitem key=key}]
73 [{oxmultilang ident="EMAIL_ORDER_CUST_HTML_PLUSTAX1"}] [{$key}][{oxmultilang ident="SHIPPING_VAT2"}] [{$VATitem}] [{$currency->name}]
74 [{/foreach}]
75 [{/block}]
76 [{block name="email_plain_order_cust_nodiscounttotalgross"}]
77 [{* brutto price *}]
78 [{oxmultilang ident="TOTAL_GROSS"}] [{$basket->getFProductsPrice()}] [{$currency->name}]
79 [{/block}]
80 [{/if}]
81 [{* applied discounts *}]
82 [{if $basket->getDiscounts()}]
83 [{if $order->isNettoMode()}]
84 [{block name="email_plain_order_ownerdiscounttotalnet"}]
85 [{* netto price *}]
86 [{oxmultilang ident="TOTAL_NET"}] [{$basket->getProductsNetPrice()}] [{$currency->name}]
87 [{/block}]
88 [{else}]
89 [{block name="email_plain_order_discountownertotalgross"}]
90 [{* brutto price *}]
91 [{oxmultilang ident="TOTAL_GROSS"}] [{$basket->getFProductsPrice()}] [{$currency->name}]
92 [{/block}]
93 [{/if}]
94 [{block name="email_plain_order_cust_discounts"}]
95 [{foreach from=$basket->getDiscounts() item=oDiscount}]
96 [{if $oDiscount->dDiscount < 0}][{oxmultilang ident="SURCHARGE"}][{else}][{oxmultilang ident="DISCOUNT"}][{/if}] [{$oDiscount->sDiscount}]: [{if $oDiscount->dDiscount < 0}][{$oDiscount->fDiscount|replace:"-":""}][{else}]-[{$oDiscount->fDiscount}][{/if}] [{$currency->name}]
97 [{/foreach}]
98 [{/block}]
99 [{if !$order->isNettoMode()}]
100 [{block name="email_plain_order_cust_totalnet"}]
101 [{* netto price *}]
102 [{oxmultilang ident="TOTAL_NET"}] [{$basket->getProductsNetPrice()}] [{$currency->name}]
103 [{/block}]
104 [{/if}]
105 [{block name="email_plain_order_cust_productvats"}]
106 [{* VATs *}]
107 [{foreach from=$basket->getProductVats() item=VATitem key=key}]
108 [{oxmultilang ident="EMAIL_ORDER_CUST_HTML_PLUSTAX1"}] [{$key}][{oxmultilang ident="SHIPPING_VAT2"}] [{$VATitem}] [{$currency->name}]
109 [{/foreach}]
110 [{/block}]
111 [{/if}]
112 [{if $order->isNettoMode()}]
113 [{block name="email_plain_order_ownertotalgross"}]
114 [{* brutto price *}]
115 [{oxmultilang ident="TOTAL_GROSS"}] [{$basket->getFProductsPrice()}] [{$currency->name}]
116 [{/block}]
117 [{/if}]
118 [{block name="email_plain_order_cust_voucherdiscount"}]
119 [{* voucher discounts *}]
120 [{if $oViewConf->getShowVouchers() && $basket->getVoucherDiscValue()}]
121 [{oxmultilang ident="COUPON"}] [{if $basket->getFVoucherDiscountValue() > 0}]-[{/if}][{$basket->getFVoucherDiscountValue()|replace:"-":""}] [{$currency->name}]
122 [{/if}]
123 [{/block}]
124 
125 [{block name="email_plain_order_cust_delcosts"}]
126 [{* delivery costs *}]
127 [{if $basket->getDelCostNet()}]
*** 
128  [{oxmultilang ident="EMAIL_ORDER_CUST_HTML_SHIPPINGNET"}] [{$basket->getDelCostNet()}] [{$currency->sign}]
129  [{if $basket->getDelCostVat()}] [{oxmultilang ident="BASKET_TOTAL_PLUS_PROPORTIONAL_VAT"}] [{else}] [{oxmultilang ident="PLUS_VAT"}] [{$basket->getDelCostVatPercent()}][{oxmultilang ident="SHIPPING_VAT2"}][{/if}] [{$basket->getDelCostVat()}] [{$currency->sign}]
130 [{elseif $basket->getFDeliveryCosts()}]
131  [{oxmultilang ident="SHIPPING_COST"}] [{$basket->getFDeliveryCosts()}] [{$currency->sign}]
132 [{/if}]
133 [{/block}]
134 
135 [{block name="email_plain_order_cust_paymentcosts"}]
136 [{* payment sum *}]
137 [{if $basket->getPayCostNet()}]
138  [{if $basket->getPaymentCosts() >= 0}][{oxmultilang ident="SURCHARGE"}][{else}][{oxmultilang ident="DEDUCTION"}][{/if}] [{oxmultilang ident="PAYMENT_METHOD"}] [{$basket->getPayCostNet()}] [{$currency->sign}]
139  [{if $basket->getPayCostVat()}]
140  [{if $basket->isProportionalCalculationOn()}] [{oxmultilang ident="BASKET_TOTAL_PLUS_PROPORTIONAL_VAT"}][{else}] [{oxmultilang ident="PLUS_VAT"}] [{$basket->getPayCostVatPercent()}][{oxmultilang ident="SHIPPING_VAT2"}][{/if}] [{$basket->getPayCostVat()}] [{$currency->sign}]
141  [{/if}]
142 [{elseif $basket->getFPaymentCosts()}]
143  [{oxmultilang ident="SURCHARGE"}] [{$basket->getFPaymentCosts()}] [{$currency->sign}]
144 [{/if}]
145 [{/block}]
146 
147 [{block name="email_plain_order_cust_ts"}]
148 [{* Trusted shops protection *}]
149 [{if $basket->getTsProtectionCosts()}]
150  [{oxmultilang ident="EMAIL_ORDER_CUST_HTML_TSPROTECTIONCHARGETAX1"}] [{$basket->getTsProtectionVatPercent()}][{oxmultilang ident="SHIPPING_VAT2"}] [{$basket->getTsProtectionVat()}] [{$currency->name}]
151  [{if $basket->getTsProtectionVat()}]
152  [{if $basket->isProportionalCalculationOn()}][{oxmultilang ident="BASKET_TOTAL_PLUS_PROPORTIONAL_VAT"}][{else}] [{oxmultilang ident="PLUS_VAT"}] [{$basket->getTsProtectionVatPercent()}][{oxmultilang ident="SHIPPING_VAT2"}][{/if}]
153  [{/if}]
154 [{/if}]
155 [{/block}]
156 
157 [{block name="email_plain_order_cust_wrappingcosts"}]
158 [{* Gift wrapping *}]
159 [{if $oViewConf->getShowGiftWrapping()}]
160  [{if $basket->getWrappCostNet()}]
161  [{oxmultilang ident="BASKET_TOTAL_WRAPPING_COSTS_NET"}] [{$basket->getWrappCostNet()}] [{$currency->sign}]
162  [{if $basket->getWrappCostVat()}]
163  [{oxmultilang ident="PLUS_VAT"}] [{$basket->getWrappCostVat()}] [{$currency->sign}]
164  [{/if}]
165  [{elseif $basket->getFWrappingCosts()}]
166  [{oxmultilang ident="GIFT_WRAPPING"}] [{$basket->getFWrappingCosts()}] [{$currency->sign}]
167  [{/if}]
168 [{/if}]
169 [{/block}]
170 
171 [{block name="email_plain_order_cust_giftwrapping"}]
172 [{* Greeting card *}]
173 [{if $oViewConf->getShowGiftWrapping()}]
174  [{if $basket->getGiftCardCostNet()}]
175  [{oxmultilang ident="BASKET_TOTAL_GIFTCARD_COSTS_NET"}] [{$basket->getGiftCardCostNet()}] [{$currency->sign}]
176  [{if $basket->getGiftCardCostVat()}]
177  [{if $basket->isProportionalCalculationOn()}][{oxmultilang ident="BASKET_TOTAL_PLUS_PROPORTIONAL_VAT"}][{else}] [{oxmultilang ident="PLUS_VAT"}] [{$basket->getGiftCardCostVatPercent()}][{oxmultilang ident="SHIPPING_VAT2"}][{/if}] [{$basket->getGiftCardCostVat()}] [{$currency->sign}]
178  [{/if}]
179  [{elseif $basket->getFGiftCardCosts()}]
180  [{oxmultilang ident="GREETING_CARD"}] [{$basket->getFGiftCardCosts()}] [{$currency->sign}]
181  [{/if}]
182 [{/if}]
183 [{/block}]
184 
185 [{block name="email_plain_order_cust_grandtotal"}]
186 [{* grand total price *}]
187 [{oxmultilang ident="GRAND_TOTAL"}] [{$basket->getFPrice()}] [{$currency->name}]
188 
189 [{if $basket->getCard()}]
190  [{oxmultilang ident="YOUR_GREETING_CARD"}]
191  [{$basket->getCardMessage()}]
192 [{/if}]
193 [{/block}]
194 
195 [{block name="email_plain_order_cust_userremark"}]
196 [{if $order->oxorder__oxremark->value}]
197  [{oxmultilang ident="WHAT_I_WANTED_TO_SAY"}] [{$order->oxorder__oxremark->getRawValue()}]
198 [{/if}]
199 [{/block}]
200 
201 [{block name="email_plain_order_cust_download_link"}]
202 [{if $oOrderFileList}]
203  [{oxmultilang ident="MY_DOWNLOADS_DESC"}]
204  [{foreach from=$oOrderFileList item="oOrderFile"}]
205  [{if $order->oxorder__oxpaid->value || !$oOrderFile->oxorderfiles__oxpurchasedonly->value}]
206  [{oxgetseourl ident=$oViewConf->getSelfLink()|cat:"cl=download" params="sorderfileid="|cat:$oOrderFile->getId()}]
207  [{else}]
208  [{$oOrderFile->oxorderfiles__oxfilename->value}] [{oxmultilang ident="DOWNLOADS_PAYMENT_PENDING"}]
209  [{/if}]
210  [{/foreach}]
211 [{/if}]
212 [{/block}]
213 
214 [{block name="email_plain_order_cust_paymentinfo"}]
215 [{if $payment->oxuserpayments__oxpaymentsid->value != "oxempty"}]
216  [{oxmultilang ident="PAYMENT_METHOD"}] [{$payment->oxpayments__oxdesc->getRawValue()}] [{if $basket->getPaymentCosts()}]([{$basket->getFPaymentCosts()}] [{$currency->sign}])[{/if}]
217 [{/if}]
218 [{/block}]
219 
220 [{block name="email_plain_order_cust_username"}]
221 [{oxmultilang ident="EMAIL_ADDRESS"}] [{$user->oxuser__oxusername->value}]
222 [{/block}]
223 
224 [{block name="email_plain_order_cust_address"}]
225 [{oxmultilang ident="BILLING_ADDRESS"}]
226 [{$order->oxorder__oxbillcompany->getRawValue()}]
227 [{$order->oxorder__oxbillsal->value|oxmultilangsal}] [{$order->oxorder__oxbillfname->getRawValue()}] [{$order->oxorder__oxbilllname->getRawValue()}]
228 [{if $order->oxorder__oxbilladdinfo->value}][{$order->oxorder__oxbilladdinfo->getRawValue()}][{/if}]
229 [{$order->oxorder__oxbillstreet->getRawValue()}] [{$order->oxorder__oxbillstreetnr->value}]
230 [{$order->oxorder__oxbillstateid->value}]
231 [{$order->oxorder__oxbillzip->value}] [{$order->oxorder__oxbillcity->getRawValue()}]
232 [{$order->oxorder__oxbillcountry->getRawValue()}]
233 [{if $order->oxorder__oxbillustid->value}][{oxmultilang ident="VAT_ID_NUMBER"}] [{$order->oxorder__oxbillustid->value}][{/if}]
234 [{oxmultilang ident="PHONE"}] [{$order->oxorder__oxbillfon->value}]
235 
236 [{if $order->oxorder__oxdellname->value}][{oxmultilang ident="SHIPPING_ADDRESS"}]
237 [{$order->oxorder__oxdelcompany->getRawValue()}]
238 [{$order->oxorder__oxdelsal->value|oxmultilangsal}] [{$order->oxorder__oxdelfname->getRawValue()}] [{$order->oxorder__oxdellname->getRawValue()}]
239 [{if $order->oxorder__oxdeladdinfo->value}][{$order->oxorder__oxdeladdinfo->getRawValue()}][{/if}]
240 [{$order->oxorder__oxdelstreet->getRawValue()}] [{$order->oxorder__oxdelstreetnr->value}]
241 [{$order->oxorder__oxdelstateid->getRawValue()}]
242 [{$order->oxorder__oxdelzip->value}] [{$order->oxorder__oxdelcity->getRawValue()}]
243 [{$order->oxorder__oxdelcountry->getRawValue()}]
244 [{/if}]
245 [{/block}]
246 
247 [{block name="email_plain_order_cust_deliveryinfo"}]
*** 
248 [{if $payment->oxuserpayments__oxpaymentsid->value != "oxempty"}][{oxmultilang ident="EMAIL_ORDER_CUST_HTML_SHIPPINGCARRIER"}] [{$order->oDelSet->oxdeliveryset__oxtitle->getRawValue()}]
249 [{/if}]
250 [{/block}]
251 
252 [{block name="email_plain_order_cust_paymentinfo"}]
253 [{if $payment->oxuserpayments__oxpaymentsid->value == "oxidpayadvance"}]
254 [{oxmultilang ident="BANK"}] [{$shop->oxshops__oxbankname->getRawValue()}]<br>
255 [{oxmultilang ident="BANK_CODE"}] [{$shop->oxshops__oxbankcode->value}]<br>
256 [{oxmultilang ident="BANK_ACCOUNT_NUMBER"}] [{$shop->oxshops__oxbanknumber->value}]<br>
257 [{oxmultilang ident="BIC"}] [{$shop->oxshops__oxbiccode->value}]<br>
258 [{oxmultilang ident="IBAN"}] [{$shop->oxshops__oxibannumber->value}]
259 [{/if}]
260 [{/block}]
261 
262 [{block name="email_plain_order_cust_orderemailend"}]
263 [{oxcontent ident="oxuserorderemailendplain"}]
264 [{/block}]
265 
266 [{block name="email_plain_order_cust_tsinfo"}]
267 [{if $oViewConf->showTs("ORDEREMAIL") && $oViewConf->getTsId()}]
268 [{oxmultilang ident="RATE_OUR_SHOP"}]
269 [{$oViewConf->getTsRatingUrl()}]
270 [{/if}]
271 [{/block}]
272 
273 [{oxcontent ident="oxemailfooterplain"}]
 
2 lines changed or deleted