{if !(!empty($order) && (empty($order->hidden) || $order->user_id|default:-1 == $user->user_id|default:0 || $smarty.session.admin|default:'' == 'admin'))} {include 'missing_template.htm'} {else} {echoVar from='order->status' assign=status} {include 'breadcrumbs.htm' last='Заказ'}
{$rate = ($currency->rate_from|default:1) / ($currency->rate_to|default:1)}

Заказ №{$order->order_id + 1} от {$order->date_date} {if $status == 0} принят {elseif $status == 1} в обработке {elseif $status == 2} выполнен {elseif $status == 3} аннулирован {else} статус неизвестный{/if} {if !empty($order->payment_status)}, оплачен{/if}


logo

{$settings->site_name}

{$settings->company_name}
{$config->company_address1}
{$config->company_address2}
Тел: {$config->phone1}
Тел: {$config->phone1}
Тел: {$config->phone2}
E-mail: {$config->email1}

Заказ №{$order->order_id + 1}
{$order->date_date}

Заказчик

ФИО: {$order->compound_name|default:$order->name}
Адрес: {$order->address}
Адрес доставки: {($order->address == $order->search_address|default:$order->address) ? "Тот-же самый" : $order->search_address}
{if !empty($order->email)} email: {$order->email}
{/if} {if !empty($order->phone)} Тел: {$order->phone}
{/if}

Комментарий к заказу: {$order->comment|default:"Нет комментария"}

{foreach $order->products as $product} {$total = $order->amount + $order->discount_sum} {$amount = ($product->quantity < 0) ? $product->quantity * -1 : $product->quantity} {/foreach} {$discountPercent = (($order->discount_sum * 1) / $total|default:1) * 100} {if $order->delivery_price * 1} {/if} {$lastNum = substr($order->total_quantity, -1)} {if $lastNum == 0 || $lastNum == 5 || $lastNum == 6 || $lastNum == 7 || $lastNum == 8 || $lastNum == 9} {$tovarov = "товаров"} {else if $lastNum == 1} {$tovarov = "товар"} {else if $lastNum == 2 || $lastNum == 3 || $lastNum == 4} {$tovarov = "товара"} {/if}
Товар Цена К-во Сумма
{name item=$product} {inputValue from='item->variant_name'} {plainText from="product->body" size=128} {$helper->priceForScreen($product->price, true, false)} {sign} {$amount} {$helper->priceForScreen($product->price * $amount, true, false)} {sign}
Всего {$helper->priceForScreen($total, true, false)} {sign}
Скидка{$discountPercent|string_format:'%1.2f'|replace:',':'.'}% {$helper->priceForScreen($order->discount_sum, true, false)} {sign}
Доставка ({$order->delivery_method|default:"Без доставки"}) {$helper->priceForScreen($order->delivery_price, true, false)} {sign}
К оплате за {$order->total_quantity} {$tovarov} {$helper->priceForScreen($order->total_amount, true, false)} {sign}

Если у Вас есть какие-либо вопросы по этому заказ, пожалуйста, свяжитесь с нами
Тел: {$config->phone1}, {$config->phone2}
Email: {$config->email1}
.


{if !empty($config->ideaShowAdverts)} {include 'other/advert-1.htm'} {/if} {if !empty($defer_products)}

Отложенные товары

Кстати, вы отложили эти товары.

{foreach $defer_products as $item} {include 'common/mini-card-big.htm'} {/foreach}
{/if} {/if}