{* *}{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} {* *} {inputValue from='post->order_id' assign=id} {$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)} {inputValue from='post->compound_name'} {else} {inputValue from='post->user_id' assign=id} {inputValue from='post->compound_name'} {/if}
Емейл: {if !empty($post->email)} {inputValue from='post->email' assign=value} {if !empty($for_user)} {$value} {else} {$value} {/if} {if !empty($post->email2)}
{/if} {/if} {if !empty($post->email2)} {inputValue from='post->email2' assign=value} {if !empty($for_user)} {$value} {else} {$value} {/if} {/if}
Телефон: {if !empty($post->phone)} {inputValue from='post->phone'} {if !empty($post->phone2)}
{/if} {/if} {inputValue from='post->phone2'}
Номер ICQ: {if !empty($post->icq)} {inputValue from='post->icq'} {if !empty($post->icq2)}
{/if} {/if} {inputValue from='post->icq2'}
Skype имя: {if !empty($post->skype)} {inputValue from='post->skype'} {if !empty($post->skype2)}
{/if} {/if} {inputValue from='post->skype2'}
Адрес доставки: {if !empty($post->compound_address)} {inputValue from='post->compound_address'} {if !empty($post->compound_address2)}

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

Это письмо поступило с сайта {site domain=TRUE}.

{/strip}