-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathorder_confirmation.html
149 lines (129 loc) · 7.11 KB
/
order_confirmation.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{extends file="email-layout.tpl"}
{* Do not provide a "Open in browser" link *}
{block name="browser"}{/block}
{* No pre-header *}
{block name="pre-header"}{/block}
{* Subject *}
{block name="email-subject"}{intl l="Your order confirmation Nº %ref" ref={$order_ref}}{/block}
{* Title *}
{block name="email-title"}{intl l="Thank you for your order!"}{/block}
{* Content *}
{block name="email-content"}
{loop name="order.invoice" type="order" id=$order_id customer="*"}
{loop name="currency.order" type="currency" id=$CURRENCY}
{assign var="orderCurrencyIsoCode" value=$ISOCODE}
{/loop}
{loop type="customer" name="customer.invoice" id=$CUSTOMER current="0"}
{assign var="customerRef" value=$REF}
{/loop}
{hook name="email-html.order-confirmation.before-address" order=$order_id}
{intl l="Here are the details of your purchase:"}<br /><br />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="55%">
<strong>{intl l="Delivery address:"}</strong><br>
{ifhook rel="email-html.order-confirmation.delivery-address"}
{* delivery module can customize the delivery address *}
{hook name="email-html.order-confirmation.delivery-address" module={$DELIVERY_MODULE} order=$order_id}
{/ifhook}
{elsehook rel="email-html.order-confirmation.delivery-address"}
{format_address order_address=$DELIVERY_ADDRESS locale=$locale}
{/elsehook}
</td>
<td valign="top">
<strong>{intl l="Billing address:"}</strong><br />
{format_address order_address=$INVOICE_ADDRESS locale=$locale}
</td>
</tr>
</table>
{hook name="email-html.order-confirmation.after-address" order=$order_id}
<br />
<p>
{intl l="Order Total:"} {format_money number=$TOTAL_TAXED_AMOUNT currency_id=$CURRENCY}<br />
{intl l="Order Number:"} {$REF}<br />
{intl l="Paid With:"} {loop name="payment-module" type="module" id=$PAYMENT_MODULE}{$TITLE}{/loop}<br />
{intl l="Purchase Date:"} {format_date date=$CREATE_DATE output="datetime"}<br />
{intl l="Delivery method:"} {loop name="delivery-module" type="module" id=$DELIVERY_MODULE}{$TITLE}{/loop}<br />
</p>
{hook name="email-html.order-confirmation.before-products" order=$order_id}
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="font-size:13px;line-height:2em">
<tr style="color:#999;font-size:11px">
<td style="color:#999;border-bottom:1px solid #000">{intl l="What You Purchased"}</td>
<td align="right" style="color:#999;border-bottom:1px solid #000">{intl l="Price in"} {$orderCurrencyIsoCode}</td>
</tr>
{$subtotal = 0}
{loop type="order_product" name="order-products" order=$ID}
{if $WAS_IN_PROMO == 1}
{assign "realPrice" $PROMO_PRICE}
{assign "realTax" $PROMO_PRICE_TAX}
{assign "realTaxedPrice" $TAXED_PROMO_PRICE}
{else}
{assign "realPrice" $PRICE}
{assign "realTax" $PRICE_TAX}
{assign "realTaxedPrice" $TAXED_PRICE}
{/if}
<tr>
<td style="border-bottom:1px solid #000">
<b>{$TITLE}</b> <i>({$REF}{if $REF != $PRODUCT_SALE_ELEMENTS_REF}, {$PRODUCT_SALE_ELEMENTS_REF}{/if})</i>
{ifloop rel="combinations"}<br />
{loop type="order_product_attribute_combination" name="combinations" order_product=$ID}
<span style="color:#999;display:block;font-size:11px;line-height:1.2">* {$ATTRIBUTE_TITLE}: {$ATTRIBUTE_AVAILABILITY_TITLE}</span>
{/loop}
{/ifloop}
{hook name="email-html.order-confirmation.product-list" order=$order_id order_product=$ID}
</td>
<td align="right" style="border-bottom:1px solid #000; white-space:nowrap">
{$QUANTITY} x {format_money number=$realTaxedPrice currency_id=$CURRENCY}
{$subtotal = $subtotal + $realTaxedPrice * $QUANTITY}
</td>
</tr>
{hook name="email-html.order-confirmation.order-product" order="{$order_id}" order_product="{$ID}"}
{/loop}
<tr>
<td align="right" style="text-align:right">{intl l="Subtotal"}</td>
<td align="right" style="text-align:right">{format_money number=$subtotal currency_id=$CURRENCY} </td>
</tr>
{if $DISCOUNT > 0}
<tr>
<td align="right" style="text-align:right">{intl l="Discount"}</td>
<td align="right" style="text-align:right">{format_money number=$DISCOUNT currency_id=$CURRENCY} </td>
</tr>
<tr>
<td align="right" style="text-align:right">{intl l="Total"}</td>
<td align="right" style="text-align:right">{format_money number={$TOTAL_TAXED_AMOUNT - $POSTAGE} currency_id=$CURRENCY} </td>
</tr>
{/if}
<tr>
<td align="right" style="text-align:right">{intl l="Shipping:"}</td>
<td align="right" style="text-align:right">{format_money number=$POSTAGE currency_id=$CURRENCY}</td>
</tr>
<tr>
<td align="right" style="text-align:right"><strong>{intl l="Order Total"}</strong></td>
<td align="right" style="text-align:right"><strong>{format_money number=$TOTAL_TAXED_AMOUNT currency_id=$CURRENCY}</strong></td>
</tr>
</table>
{/loop}
{hook name="email-html.order-confirmation.after-products" order=$order_id}
<br />
{ifhook rel="email-html.order-confirmation.footer"}
{hook name="email-html.order-confirmation.footer" order=$order_id}
{/ifhook}
{elsehook rel="email-html.order-confirmation.footer"}
<p><a href="{url path="/account"}">{intl l="View this order in your account at %shop_name" shop_name={config key="store_name"}}</a></p>
<br />
<h2>{intl l="Support"}</h2>
{intl l='For any questions, or concerns, feel free to contact <a href="mailto:%mail" style="color:#3c69c1;text-decoration:none" target="_blank">%mail</a>.' mail={config key="store_email"}}<br /><br />
<b>{intl l="Our contact us at:"}</b> <br />
{config key="store_name"}<br>
{config key="store_address1"}<br />
{config key="store_zipcode"}, {config key="store_city"}<br />
{if {config key="store_country"}}
{loop type="country" name="store_country" id={config key="store_country"}}
{$TITLE}
{/loop}
{/if}
<br />
<br />
{intl l="Thanks"}<br />
{/elsehook}
{/block}