OXID eShop CE 4.10.1 tpl/email/plain/order_owner.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="basket" value=$order->getBasket() }]
[{ assign var="oDelSet" value=$order->getDelSet() }]
[{ assign var="payment" value=$order->getPayment() }]
[{block name="email_plain_order_owner_orderemail"}]
10 [{if $payment->oxuserpayments__oxpaymentsid->value == "oxempty"}]
11 [{oxcontent ident="oxadminordernpplainemail"}]
12 [{else}]
13 [{oxcontent ident="oxadminorderplainemail"}]
14 [{/if}]
15 [{/block}]
16 
17 [{ oxmultilang ident="ORDER_NUMBER" }] [{ $order->oxorder__oxordernr->value }]
18 
19 [{block name="email_plain_order_owner_voucherdiscount_top"}]
20 [{if $oViewConf->getShowVouchers() }]
21 [{ foreach from=$order->getVoucherList() item=voucher}]
22 [{ assign var="voucherseries" value=$voucher->getSerie() }]
23 [{ oxmultilang ident="USED_COUPONS_2" }] [{$voucher->oxvouchers__oxvouchernr->value}] - [{ oxmultilang ident="DISCOUNT" }] [{$voucherseries->oxvoucherseries__oxdiscount->value}] [{ if $voucherseries->oxvoucherseries__oxdiscounttype->value == "absolute"}][{ $currency->sign}][{else}]%[{/if}]
24 [{/foreach }]
25 [{/if}]
26 [{/block}]
27 
28 [{assign var="basketitemlist" value=$basket->getBasketArticles() }]
29 [{foreach key=basketindex from=$basket->getContents() item=basketitem}]
30 [{block name="email_plain_order_ownerbasketitem"}]
31 [{assign var="basketproduct" value=$basketitemlist.$basketindex }]
32 [{ $basketproduct->oxarticles__oxtitle->getRawValue()|strip_tags }][{ if $basketproduct->oxarticles__oxvarselect->value}], [{ $basketproduct->oxarticles__oxvarselect->value}][{/if}]
33 [{ if $basketitem->getChosenSelList() }][{foreach from=$basketitem->getChosenSelList() item=oList}][{ $oList->name }] [{ $oList->value }][{/foreach}][{/if}]
34 [{ if $basketitem->getPersParams() }][{foreach key=sVar from=$basketitem->getPersParams() item=aParam}][{$sVar}] : [{$aParam}][{/foreach}][{/if}]
35 [{if $oViewConf->getShowGiftWrapping() }]
36 [{assign var="oWrapping" value=$basketitem->getWrapping() }]
37 [{ oxmultilang ident="GIFT_WRAPPING" suffix="COLON" }] [{ if !$basketitem->getWrappingId() }][{ oxmultilang ident="NONE" }][{else}][{$oWrapping->oxwrapping__oxname->getRawValue()}][{/if}]
38 [{/if}]
39 [{ if $basketproduct->oxarticles__oxorderinfo->value }][{ $basketproduct->oxarticles__oxorderinfo->getRawValue() }][{/if}]
40 
41 [{assign var=dRegUnitPrice value=$basketitem->getRegularUnitPrice()}]
42 [{assign var=dUnitPrice value=$basketitem->getUnitPrice()}]
43 [{ oxmultilang ident="UNIT_PRICE" }] [{oxprice price=$basketitem->getUnitPrice() currency=$currency }] [{if !$basketitem->isBundle() }] [{if $dRegUnitPrice->getPrice() > $dUnitPrice->getPrice() }] ([{oxprice price=$basketitem->getRegularUnitPrice() currency=$currency }]) [{/if}][{/if}]
44 [{ oxmultilang ident="QUANTITY" }] [{$basketitem->getAmount()}]
45 [{ oxmultilang ident="VAT" }] [{$basketitem->getVatPercent() }]%
46 [{ oxmultilang ident="TOTAL" }] [{oxprice price=$basketitem->getPrice() currency=$currency}]
47 [{/block}]
48 [{/foreach}]
49 ------------------------------------------------------------------
50 [{ if !$basket->getDiscounts()}]
51 [{block name="email_plain_order_ownernodiscounttotalnet"}]
52 [{* netto price *}]
53 [{ oxmultilang ident="TOTAL_NET" suffix="COLON" }] [{ $basket->getProductsNetPrice() }] [{ $currency->name}]
54 [{/block}]
55 [{block name="email_plain_order_ownernodiscountproductvats"}]
56 [{* VATs *}]
57 [{foreach from=$basket->getProductVats() item=VATitem key=key}]
58 [{ oxmultilang ident="VAT_PLUS_PERCENT_AMOUNT" suffix="COLON" args=$key }] [{ $VATitem }] [{ $currency->name}]
59 [{/foreach}]
60 [{/block}]
61 [{block name="email_plain_order_nodiscountownertotalgross"}]
62 [{* brutto price *}]
63 [{ oxmultilang ident="TOTAL_GROSS" suffix="COLON" }] [{ $basket->getFProductsPrice() }] [{ $currency->name}]
64 [{/block}]
65 [{/if}]
66 
67 [{* applied discounts *}]
68 [{ if $basket->getDiscounts()}]
69 [{if $order->isNettoMode() }]
70 [{block name="email_plain_order_ownerdiscounttotalnet"}]
71 [{* netto price *}]
72 [{ oxmultilang ident="TOTAL_NET" suffix="COLON" }] [{ $basket->getProductsNetPrice() }] [{ $currency->name}]
73 [{/block}]
74 [{else}]
75 [{block name="email_plain_order_discountownertotalgross"}]
76 [{* brutto price *}]
77 [{ oxmultilang ident="TOTAL_GROSS" suffix="COLON" }] [{ $basket->getFProductsPrice() }] [{ $currency->name}]
78 [{/block}]
79 [{/if}]
80 [{block name="email_plain_order_ownerdiscounts"}]
81  [{foreach from=$basket->getDiscounts() item=oDiscount}]
82  [{if $oDiscount->dDiscount < 0 }][{ oxmultilang ident="SURCHARGE" }][{else}][{ oxmultilang ident="DISCOUNT" }][{/if}] [{ $oDiscount->sDiscount suffix="COLON" }] [{if $oDiscount->dDiscount < 0 }][{ $oDiscount->fDiscount|replace:"-":"" }][{else}]-[{ $oDiscount->fDiscount }][{/if}] [{ $currency->name}]
83  [{/foreach}]
84 [{/block}]
85 [{if !$order->isNettoMode()}]
86 [{block name="email_plain_order_ownertotalnet"}]
87  [{* netto price *}]
88  [{ oxmultilang ident="TOTAL_NET" suffix="COLON" }] [{ $basket->getProductsNetPrice() }] [{ $currency->name}]
89 [{/block}]
90 [{/if}]
91 [{block name="email_plain_order_ownerproductvats"}]
92  [{* VATs *}]
93  [{foreach from=$basket->getProductVats() item=VATitem key=key}]
94  [{ oxmultilang ident="VAT_PLUS_PERCENT_AMOUNT" suffix="COLON" args=$key}] [{ $VATitem }] [{ $currency->name}]
95  [{/foreach}]
96 [{/block}]
97 [{/if}]
98 [{if $order->isNettoMode()}]
99 [{block name="email_plain_order_ownertotalgross"}]
100 [{* brutto price *}]
101 [{ oxmultilang ident="TOTAL_GROSS" suffix="COLON" }] [{ $basket->getFProductsPrice() }] [{ $currency->name}]
102 [{/block}]
103 [{/if}]
104 [{block name="email_plain_order_owner_voucherdiscount"}]
105 [{* voucher discounts *}]
106 [{if $oViewConf->getShowVouchers() && $basket->getVoucherDiscValue() }]
107 [{ oxmultilang ident="COUPON" suffix="COLON" }] [{ if $basket->getFVoucherDiscountValue() > 0 }]-[{/if}][{ $basket->getFVoucherDiscountValue()|replace:"-":"" }] [{ $currency->name}]
108 [{/if}]
109 [{/block}]
110 [{block name="email_plain_order_ownerdelcosts"}]
111 [{* delivery costs *}]
112 [{if $basket->getDelCostNet() }]
113  [{ oxmultilang ident="SHIPPING_NET" suffix="COLON" }] [{ $basket->getDelCostNet() }] [{ $currency->sign}]
114  [{if $basket->getDelCostVat() }] [{ oxmultilang ident="BASKET_TOTAL_PLUS_PROPORTIONAL_VAT" }] [{else}] [{ oxmultilang ident="VAT_PLUS_PERCENT_AMOUNT" suffix="COLON" args=$basket->getDelCostVatPercent()}][{/if}] [{ $basket->getDelCostVat() }] [{ $currency->sign}]
115 [{elseif $basket->getFDeliveryCosts() }]
116  [{ oxmultilang ident="SHIPPING_COST" }] [{ $basket->getFDeliveryCosts() }] [{ $currency->sign}]
117 [{/if}]
118 [{/block}]
119 [{block name="email_plain_order_ownerpaymentcosts"}]
120 [{* payment sum *}]
121 [{ if $basket->getPayCostNet() }]
122  [{if $basket->getPaymentCosts() >= 0}][{ oxmultilang ident="SURCHARGE" }][{else}][{ oxmultilang ident="DEDUCTION" }][{/if}] [{ oxmultilang ident="PAYMENT_METHOD" suffix="COLON" }] [{ $basket->getPayCostNet() }] [{ $currency->sign}]
123  [{ if $basket->getPayCostVat() }]
124  [{if $basket->isProportionalCalculationOn() }] [{ oxmultilang ident="BASKET_TOTAL_PLUS_PROPORTIONAL_VAT" }][{else}] [{ oxmultilang ident="VAT_PLUS_PERCENT_AMOUNT" suffix="COLON" args=$basket->getPayCostVatPercent()}][{/if}] [{ $basket->getPayCostVat() }] [{ $currency->sign}]
125  [{/if}]
126 [{elseif $basket->getFPaymentCosts()}]
127  [{ oxmultilang ident="SURCHARGE" }] [{ $basket->getFPaymentCosts() }] [{ $currency->sign}]
128 [{/if}]
129 [{/block}]
130 
131 [{block name="email_plain_order_ownerts"}]
132 [{* Trusted shops protection *}]
133 [{ if $basket->getTsProtectionCosts() }]
134  [{ oxmultilang ident="VAT_PLUS_PERCENT_AMOUNT" suffix="COLON" args=$basket->getTsProtectionVatPercent()}] [{ $basket->getTsProtectionVat() }] [{ $currency->name}]
135  [{ if $basket->getTsProtectionVat() }]
136  [{if $basket->isProportionalCalculationOn() }][{ oxmultilang ident="BASKET_TOTAL_PLUS_PROPORTIONAL_VAT" }][{else}] [{ oxmultilang ident="VAT_PLUS_PERCENT_AMOUNT" suffix="COLON" args=$basket->getTsProtectionVatPercent()}][{/if}]
137  [{/if}]
138 [{/if}]
139 [{/block}]
140 
141 [{block name="email_plain_order_giftwrapping"}]
142 [{* Gift wrapping *}]
143 [{ if $oViewConf->getShowGiftWrapping() }]
144  [{if $basket->getWrappCostNet() }]
145  [{ oxmultilang ident="BASKET_TOTAL_WRAPPING_COSTS_NET" }] [{ $basket->getWrappCostNet() }] [{ $currency->sign}]
146  [{if $basket->getWrappCostVat() }]
147  [{ oxmultilang ident="PLUS_VAT" }] [{ $basket->getWrappCostVat() }] [{ $currency->sign}]
148  [{/if}]
149  [{elseif $basket->getFWrappingCosts() }]
150  [{ oxmultilang ident="GIFT_WRAPPING" }] [{ $basket->getFWrappingCosts() }] [{ $currency->sign}]
151  [{/if}]
152 [{/if}]
153 [{/block}]
154 
155 [{block name="email_plain_order_cust_greetingcard"}]
156 [{* Greeting card *}]
157 [{ if $oViewConf->getShowGiftWrapping() }]
158  [{if $basket->getGiftCardCostNet() }]
159  [{ oxmultilang ident="BASKET_TOTAL_GIFTCARD_COSTS_NET" }] [{ $basket->getGiftCardCostNet() }] [{ $currency->sign}]
160  [{if $basket->getGiftCardCostVat() }]
161  [{if $basket->isProportionalCalculationOn() }][{ oxmultilang ident="BASKET_TOTAL_PLUS_PROPORTIONAL_VAT" }][{else}] [{ oxmultilang ident="VAT_PLUS_PERCENT_AMOUNT" suffix="COLON" args=$basket->getGiftCardCostVatPercent()}][{/if}] [{ $basket->getGiftCardCostVat() }] [{ $currency->sign}]
162  [{/if}]
163  [{elseif $basket->getFGiftCardCosts() }]
164  [{ oxmultilang ident="GREETING_CARD" }] [{ $basket->getFGiftCardCosts() }] [{ $currency->sign}]
165  [{/if}]
166 [{/if}]
167 [{/block}]
168 
169 [{block name="email_plain_order_ownergrandtotal"}]
170 [{* grand total price *}]
171 [{ oxmultilang ident="GRAND_TOTAL" suffix="COLON" }] [{ $basket->getFPrice() }] [{ $currency->name}]
172 [{if $basket->oCard }]
173  [{ oxmultilang ident="ATENTION_GREETING_CARD" suffix='COLON'}]
174  [{ oxmultilang ident="WHAT_I_WANTED_TO_SAY" }]
175  [{$basket->getCardMessage()}]
176 [{/if}]
177 [{/block}]
178 
179 [{block name="email_plain_order_owneruserremark"}]
180 [{ if $order->oxorder__oxremark->value }]
181 [{ oxmultilang ident="MESSAGE" suffix="COLON" }] [{ $order->oxorder__oxremark->getRawValue() }]
182 [{/if}]
183 [{/block}]
184 
185 [{block name="email_plain_order_ownerpaymentinfo"}]
186 [{if $payment->oxuserpayments__oxpaymentsid->value != "oxempty"}][{ oxmultilang ident="PAYMENT_INFORMATION" suffix="COLON" }]
187 [{ oxmultilang ident="PAYMENT_METHOD" suffix="COLON" }][{ $payment->oxpayments__oxdesc->getRawValue() }] [{ if $basket->getPaymentCosts() }]([{ $basket->getFPaymentCosts() }] [{ $currency->sign}])[{/if}]
*** 
188 [{ oxmultilang ident="PAYMENT_INFO_OFF" }]
189 [{*
190 [{foreach from=$payment->aDynValues item=value}]
191 [{assign var="ident" value='EMAIL_ORDER_OWNER_HTML_'|cat:$value->name}]
192 [{assign var="ident" value=$ident|oxupper}]
193 [{oxmultilang ident=$ident suffix="COLON" }] [{ $value->value }]
194 [{/foreach }]
195 *}]
196 [{/if}]
197 [{/block}]
198 
199 [{block name="email_plain_order_ownerusername"}]
200 [{ oxmultilang ident="EMAIL_ADDRESS" suffix="COLON" }] [{ $user->oxuser__oxusername->value }]
201 [{/block}]
202 
203 [{block name="email_plain_order_owneraddress"}]
204 [{ oxmultilang ident="BILLING_ADDRESS" }]
205 [{ $order->oxorder__oxbillcompany->getRawValue() }]
206 [{ $order->oxorder__oxbillsal->value|oxmultilangsal }] [{ $order->oxorder__oxbillfname->getRawValue() }] [{ $order->oxorder__oxbilllname->getRawValue() }]
207 [{if $order->oxorder__oxbilladdinfo->value }][{ $order->oxorder__oxbilladdinfo->getRawValue() }][{/if}]
208 [{ $order->oxorder__oxbillstreet->getRawValue() }] [{ $order->oxorder__oxbillstreetnr->value }]
209 [{ $order->oxorder__oxbillstateid->value }]
210 [{ $order->oxorder__oxbillzip->value }] [{ $order->oxorder__oxbillcity->getRawValue() }]
211 [{ $order->oxorder__oxbillcountry->getRawValue() }]
212 [{if $order->oxorder__oxbillustid->value}][{ oxmultilang ident="VAT_ID_NUMBER" suffix="COLON" }] [{ $order->oxorder__oxbillustid->value }][{/if}]
213 [{ oxmultilang ident="PHONE" suffix="COLON" }] [{ $order->oxorder__oxbillfon->value }]
214 
215 [{ if $order->oxorder__oxdellname->value }][{ oxmultilang ident="SHIPPING_ADDRESS" suffix="COLON" }]
216 [{ $order->oxorder__oxdelcompany->getRawValue() }]
217 [{ $order->oxorder__oxdelsal->value|oxmultilangsal }] [{ $order->oxorder__oxdelfname->getRawValue() }] [{ $order->oxorder__oxdellname->getRawValue() }]
218 [{if $order->oxorder__oxdeladdinfo->value }][{ $order->oxorder__oxdeladdinfo->getRawValue() }][{/if}]
219 [{ $order->oxorder__oxdelstreet->getRawValue() }] [{ $order->oxorder__oxdelstreetnr->value }]
220 [{ $order->oxorder__oxdelstateid->getRawValue() }]
221 [{ $order->oxorder__oxdelzip->value }] [{ $order->oxorder__oxdelcity->getRawValue() }]
222 [{ $order->oxorder__oxdelcountry->getRawValue() }]
223 [{/if}]
224 [{/block}]
225 
226 [{block name="email_plain_order_ownerdeliveryinfo"}]
227 [{if $payment->oxuserpayments__oxpaymentsid->value != "oxempty"}][{ oxmultilang ident="SHIPPING_CARRIER" suffix="COLON" }] [{ $order->oDelSet->oxdeliveryset__oxtitle->getRawValue() }]
228 [{/if}]
229 [{/block}]
230 
231 [{ oxcontent ident="oxemailfooterplain" }]
 
8 lines changed or deleted