Files
AtomicOld/design/carheart/html/email_order.tpl
2026-02-15 18:29:53 +03:00

187 lines
7.2 KiB
Smarty
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{* Шаблон письма пользователю о заказе *}
{$subject = "Заказ №`$order->id`" scope=parent}
<h1 style="font-weight:normal;font-family:arial;">
<a href="{$config->root_url}/order/{$order->url}">Ваш заказ №{$order->id}</a>
на сумму {$order->total_price|convert:$currency->id}&nbsp;{$currency->sign}
{if $order->paid == 1}оплачен{else}еще не оплачен{/if},
{if $order->status == 0}ждет обработки{elseif $order->status == 1}в обработке{elseif $order->status == 2}выполнен{/if}
</h1>
{if $additional_message}
{$additional_message}
{/if}
<table cellpadding="6" cellspacing="0" style="border-collapse: collapse;">
<tr>
<td style="padding:6px; width:170; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
Статус
</td>
<td style="padding:6px; width:330; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
{if $order->status == 0}
ждет обработки
{elseif $order->status == 1}
в обработке
{elseif $order->status == 2}
выполнен
{/if}
</td>
</tr>
<tr>
<td style="padding:6px; width:170; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
Оплата
</td>
<td style="padding:6px; width:330; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
{if $order->paid == 1}
<font color="green">оплачен</font>
{else}
не оплачен
{/if}
</td>
</tr>
{if $order->name}
<tr>
<td style="padding:6px; width:170; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
Имя, фамилия
</td>
<td style="padding:6px; width:330; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
{$order->name|escape} {$order->name2|escape}
</td>
</tr>
{/if}
{if $order->email}
<tr>
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
Email
</td>
<td style="padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
{$order->email|escape}
</td>
</tr>
{/if}
{if $order->phone}
<tr>
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
Телефон
</td>
<td style="padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
{$order->phone|escape}
</td>
</tr>
{/if}
{if $order->address}
<tr>
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
Страна, Регион, Город, адрес доставки,индекс
</td>
<td style="padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
{$order->country|escape}, {$order->region|escape}, {$order->city|escape}, {$order->address|escape}, {$order->indx|escape}
</td>
</tr>
{/if}
{if $order->comment}
<tr>
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
Комментарий
</td>
<td style="padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
{$order->comment|escape|nl2br}
</td>
</tr>
{/if}
<tr>
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
Дата
</td>
<td style="padding:6px; width:170; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
{$order->date|date} {$order->date|time}
</td>
</tr>
</table>
<h1 style="font-weight:normal;font-family:arial;">Вы заказали:</h1>
<table cellpadding="6" cellspacing="0" style="border-collapse: collapse;">
{foreach name=purchases from=$purchases item=purchase}
<tr>
<td align="center" style="padding:6px; width:100; padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
{$image = $purchase->product->images[0]}
<a href="{$config->root_url}/products/{$purchase->product->url}"><img border="0" src="{$image->filename|resize:50:50}"></a>
</td>
<td style="padding:6px; width:250; padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
<a href="{$config->root_url}/products/{$purchase->product->url}">{$purchase->product_name}</a>
{$purchase->variant_name}
{if $order->paid && $purchase->variant->attachment}
<br>
<a href="{$config->root_url}/order/{$order->url}/{$purchase->variant->attachment}"><font color="green">Скачать {$purchase->variant->attachment}</font></a>
{/if}
<div class="features">
{foreach from=$purchase->options item=opt key=ok}
{assign var=f value=$features[$ok]}
<p>
<label>{$f->name} </label>
<span>
{$opt}
</span>
</p>
{/foreach}
</div>
</td>
<td align=right style="padding:6px; text-align:right; width:150; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
{$purchase->amount} {$settings->units} &times; {$purchase->price|convert:$currency->id}&nbsp;{$currency->sign}
</td>
</tr>
{/foreach}
{if $order->discount}
<tr>
<td style="padding:6px; width:100; padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;"></td>
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
Скидка
</td>
<td align=right style="padding:6px; text-align:right; width:170; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
{$order->discount}&nbsp;%
</td>
</tr>
{/if}
{if $order->coupon_discount>0}
<tr>
<td style="padding:6px; width:100; padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;"></td>
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
Купон {$order->coupon_code}
</td>
<td align=right style="padding:6px; text-align:right; width:170; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
&minus;{$order->coupon_discount}&nbsp;{$currency->sign}
</td>
</tr>
{/if}
{if $delivery && !$order->separate_delivery}
<tr>
<td style="padding:6px; width:100; padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;"></td>
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;">
{$delivery->name}
</td>
<td align="right" style="padding:6px; text-align:right; width:170; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;">
{$order->delivery_price|convert:$currency->id}&nbsp;{$currency->sign}
</td>
</tr>
{/if}
<tr>
<td style="padding:6px; width:100; padding:6px; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;"></td>
<td style="padding:6px; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;font-weight:bold;">
Итого
</td>
<td align="right" style="padding:6px; text-align:right; width:170; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;font-weight:bold;">
{$order->total_price|convert:$currency->id}&nbsp;{$currency->sign}
</td>
</tr>
</table>
<br>
Вы всегда можете проверить состояние заказа по ссылке:<br>
<a href="{$config->root_url}/order/{$order->url}">{$config->root_url}/order/{$order->url}</a>
<br>