{* *}{strip} {* *} {capture assign = 'h1_style'} style=" color: #000; font-family: Verdana, Tahoma, Arial; font-size: 13pt; font-weight: bold; margin: 10px; padding: 0; " {/capture} {capture assign = 'p_style'} style=" color: #000; font-family: Verdana, Tahoma, Arial; font-size: 10pt; font-weight: normal; margin: 10px; padding: 0; " {/capture} {capture assign = 'img_style'} style=" border: 0 solid; margin: 0; padding: 0; max-width: 400px; " {/capture} {capture assign = 'span_style'} style=" color: #000; font-family: Verdana, Tahoma, Arial; font-size: 8pt; font-weight: normal; margin: 0; padding: 0; " {/capture} {capture assign = 'span_style_stdtext'} style=" color: #000; font-family: Verdana, Tahoma, Arial; font-size: 10pt; font-weight: normal; margin: 0; padding: 0; " {/capture} {capture assign = 'span_style_orange'} style=" color: #f80; font-family: Verdana, Tahoma, Arial; font-size: 8pt; font-weight: normal; margin: 0; padding: 0; " {/capture} {capture assign = 'span_style_silver'} style=" color: #ccc; font-family: Verdana, Tahoma, Arial; font-size: 8pt; font-weight: normal; margin: 0; padding: 0; " {/capture} {capture assign = 'span_style_silver_right'} style=" color: #ccc; float: right; font-family: Verdana, Tahoma, Arial; font-size: 8pt; font-weight: normal; margin: 0; padding: 0; " {/capture} {capture assign = 'span_style_green'} style=" color: #0a0; font-family: Verdana, Tahoma, Arial; font-size: 8pt; font-weight: normal; margin: 0; padding: 0; " {/capture} {capture assign = 'span_style_green_stdtext'} style=" color: #0a0; font-family: Verdana, Tahoma, Arial; font-size: 10pt; font-weight: normal; margin: 0; padding: 0; " {/capture} {capture assign = 'span_style_red'} style=" color: #f00; font-family: Verdana, Tahoma, Arial; font-size: 8pt; font-weight: normal; margin: 0; padding: 0; " {/capture} {capture assign = 'span_style_red_stdtext'} style=" color: #f00; font-family: Verdana, Tahoma, Arial; font-size: 10pt; font-weight: normal; margin: 0; padding: 0; " {/capture} {capture assign = 'a_style'} style=" color: #08f; text-decoration: underline; " {/capture} {capture assign = 'a_style_8pt'} style=" color: #08f; font-size: 8pt; text-decoration: underline; " {/capture} {capture assign = 'table_style'} style=" border: #ddd 3px solid; border-right: #ddd 2px solid; border-bottom: #ddd 2px solid; color: #000; font-family: Verdana, Tahoma, Arial; font-size: 10pt; font-weight: normal; margin: 10px; padding: 0; width: 750px; max-width: 750px; " {/capture} {capture assign = 'td_style'} style=" background: #eee; border: 0 solid; border-right: #ddd 1px solid; border-bottom: #ddd 1px solid; color: #000; font-family: Verdana, Tahoma, Arial; font-size: 10pt; font-weight: normal; margin: 0; padding: 10px; text-align: left; vertical-align: top; width: 100px; " {/capture} {capture assign = 'td_style_1_3'} style=" background: #eee; border: 0 solid; border-right: #ddd 1px solid; border-bottom: #ddd 1px solid; color: #000; font-family: Verdana, Tahoma, Arial; font-size: 10pt; font-weight: normal; margin: 0; padding: 10px; text-align: left; vertical-align: top; width: 33%; " {/capture} {capture assign = 'td_style_title'} style=" background: #e8e8e8; border: 0 solid; border-right: #ddd 1px solid; border-bottom: #ddd 1px solid; color: #888; font-family: Verdana, Tahoma, Arial; font-size: 8pt; font-weight: normal; margin: 0; padding: 5px 10px; text-align: center; vertical-align: middle; white-space: nowrap; width: 100px; " {/capture} {capture assign = 'td_style_title_right'} style=" background: #e8e8e8; border: 0 solid; border-right: #ddd 1px solid; border-bottom: #ddd 1px solid; color: #888; font-family: Verdana, Tahoma, Arial; font-size: 8pt; font-weight: normal; margin: 0; padding: 5px 10px; text-align: right; vertical-align: middle; white-space: nowrap; width: 100px; " {/capture} {capture assign = 'td_style_info'} style=" background: #fff; border: 0 solid; border-right: #ddd 1px solid; border-bottom: #ddd 1px solid; color: #000; font-family: Verdana, Tahoma, Arial; font-size: 10pt; font-weight: normal; margin: 0; padding: 10px; text-align: left; vertical-align: top; width: 100%; " {/capture} {capture assign = 'td_style_info_2_3'} style=" background: #fff; border: 0 solid; border-right: #ddd 1px solid; border-bottom: #ddd 1px solid; color: #000; font-family: Verdana, Tahoma, Arial; font-size: 10pt; font-weight: normal; margin: 0; padding: 10px; text-align: left; vertical-align: top; width: 66%; " {/capture} {capture assign = 'td_style_item'} style=" background: #eee; border: 0 solid; border-right: #ddd 1px solid; border-bottom: #ddd 1px solid; color: #000; font-family: Verdana, Tahoma, Arial; font-size: 10pt; font-weight: normal; margin: 0; padding: 10px; text-align: left; vertical-align: top; width: 100%; " {/capture} {capture assign = 'td_style_sum'} style=" background: #fff; border: 0 solid; border-right: #ddd 1px solid; border-bottom: #ddd 1px solid; color: #000; font-family: Verdana, Tahoma, Arial; font-size: 10pt; font-weight: normal; margin: 0; padding: 10px; text-align: right; vertical-align: top; white-space: nowrap; width: auto; " {/capture} {* *} {$id = $post->order_id|default:''|escape} {$rate = $currency->rate_from|default:1 / $currency->rate_to|default:1} {capture assign = 'url'} {site}{$admin_folder|default:''|escape}/index.php?section= {/capture} {* *} {$total = $helper->priceForScreen($post->total_amount|default:0)}

{if !empty($for_user)} Заказ №{$id} {else} Заказ №{$id} {/if} {**} на сумму {$total} {sign}

{* *} {if !empty($post->compound_name)} {/if} {* *} {if !empty($post->email) || !empty($post->email2)} {/if} {* *} {if !empty($post->phone) || !empty($post->phone2)} {/if} {* *} {if !empty($post->icq) || !empty($post->icq2)} {/if} {* *} {if !empty($post->skype) || !empty($post->skype2)} {/if} {* *} {if !empty($post->compound_address) || !empty($post->compound_address2)} {/if} {* *} {if !empty($post->comment)} {/if} {* *} {if isset($post->date)} {/if} {* *} {* *} {* *} {if !empty($post->payment_method)} {/if}
Имя: {if !empty($for_user) || empty($post->user_id)} {$post->compound_name|escape} {else} {$id = $post->user_id|escape} {$post->compound_name|escape} {/if}
Емейл: {if !empty($post->email)} {if !empty($for_user)} {$post->email|escape} {else} {$post->email|escape} {/if} {if !empty($post->email2)}
{/if} {/if} {if !empty($post->email2)} {if !empty($for_user)} {$post->email2|escape} {else} {$post->email2|escape} {/if} {/if}
Телефон: {if !empty($post->phone)} {$post->phone|escape} {if !empty($post->phone2)}
{/if} {/if} {$post->phone2|default:''|escape}
Номер ICQ: {if !empty($post->icq)} {$post->icq|escape} {if !empty($post->icq2)}
{/if} {/if} {$post->icq2|default:''|escape}
Skype имя: {if !empty($post->skype)} {$post->skype|escape} {if !empty($post->skype2)}
{/if} {/if} {$post->skype2|default:''|escape}
Адрес доставки: {if !empty($post->compound_address)} {$post->compound_address|escape} {if !empty($post->compound_address2)}

{/if} {/if} {$post->compound_address2|default:''|escape}
Комментарий: {$post->comment|strip_tags|escape|nl2br}
Дата заказа: {$post->date|escape}
Состояние: Состояние заказа можно {**} проверить здесь . {* *} {$status = $post->status|default:0} {if $status == 0} ждет обработки {elseif $status == 1} в обработке {elseif $status == 2} выполнен {elseif $status == 3} аннулирован {/if} {if !empty($post->orders_phase)} → {$post->orders_phase|escape}{/if}
Оплата: {$status = $post->payment_status|default:0} {if $status} оплачен  {$post->payment_date|default:''|escape} {else} не оплачен {/if}
Способ оплаты: {$post->payment_method|escape}
{* *} {if !empty($post->products)} {foreach $post->products as $r} {$id = $r->product_id|default:''|escape} {* *} {* *} {$quantity = $r->quantity|default:1} {if $quantity < 0} {$quantity = $quantity * -1} {/if} {* *} {* *} {* *} {/foreach} {/if} {* *} {* *} {$price = $helper->priceForScreen($post->discount_sum|default:0)} {if $price != 0} {/if} {* *} {if empty($for_user)} {/if} {* *}
товар количество цена товара скидка сумма итого
{$model = $r->product_name|default:''|escape} {$name = $r->variant_name|default:''|escape} {$model} {**} {if $name != '' && $name != $model} {$name} {**} {/if} {if $r->name_properties|default:'' != ''} {$r->name_properties|escape} {/if}
{* *} {if empty($for_user)} {if $r->url|default:'' != ''} смотреть      {**} редактировать {else} такого товара уже нет в базе сайта {/if} {/if}
{$quantity|escape} шт. {$price = $helper->priceForScreen($r->real_price|default:0)} {$price} {sign} {* *} {if empty($for_user)} {$price = $helper->priceForScreen($r->real_price|default:0 * $quantity)}
{$price} {sign} {/if}
{$percent = $helper->priceForScreen($r->discount, FALSE)} {if $percent != 0} -{$percent}% {* *} {if empty($for_user)} {$price = $helper->priceForScreen(($r->real_price|default:0 - $r->price|default:0) * $quantity * $rate, FALSE)}
-{$price} {sign} {/if} {else}   {/if}
{$price = $helper->priceForScreen($r->price|default:0 * $quantity)} {$price} {sign}
{$post->delivery_method|default:'способ доставки не указан'|escape}   {$price = $helper->priceForScreen($post->delivery_price|default:0)} {if $price > 0} {$price} {sign} {else}   {/if}
Дополнительная скидка:   -{$price} {sign}
Фактическая скидка по заказу: {$percent = $helper->priceForScreen($post->discount, FALSE)} -{$percent}%  
Итого:   {$total} {sign}
{* *} {if !empty($post->credit_id) && !empty($post->credit_details)} {$percent = $helper->priceForScreen($post->credit_percent|default:0, FALSE)}

Данные о кредите: {$post->credit_name|default:'неизвестный'|escape}   {**} срок кредитования {$post->credit_term|default:0|escape} месяцев, {**} процентная ставка {$percent}%

{foreach $post->credit_details as $r} {$name = $r.label|default:''|strip_tags|escape} {if isset($r.value)} {if $r.value|strip_tags|strip != ''} {* *} {* *} {/if} {* *} {else} {/if} {/foreach}
{$name} {$value = $r.value|escape} {if isset($r.type) && ($r.type == $smarty.const.FIELDTYPE_CREDITPROGRAMS_FILE)} {capture assign = 'url'} {if $value|truncate:7:'':true|lower != 'http://'}{site}{/if}{$value} {/capture} {elseif isset($r.type) && ($r.type == $smarty.const.FIELDTYPE_CREDITPROGRAMS_URL)} {$value} {elseif isset($r.type) && ($r.type == $smarty.const.FIELDTYPE_CREDITPROGRAMS_EMAIL)} {$value} {else} {$r.value|strip_tags|escape} {/if}
{$name}
{/if} {* *}

Это письмо поступило с сайта {**} {$root_url|default:''|escape} {if isset($post->now)} {**}  {$post->now|escape} {/if}

{/strip}