{* *}{strip} {* *} {include 'common/breadcrumbs.htm' path=['account'=>'Кабинет', 'Заказ']} {* *}
{if !empty($order) && (empty($order->hidden) || $order->user_id|default:-1 == $user->user_id|default:0 || $smarty.session.admin|default:'' == 'admin')} {echoVar from='order->status' assign=status}

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

{* *}
{if !empty($order->compound_name)} {/if} {if !empty($order->email)} {/if} {if !empty($order->phone)} {/if} {if !empty($order->compound_address)} {/if} {if !empty($order->comment)} {/if}
Детали заказа
Дата {echoVar from='order->date_date'} в {echoVar from='order->date_time'}
Имя {inputValue from='order->compound_name'}
Email {inputValue from='order->email'}
Телефон {inputValue from='order->phone'}
Адрес доставки {inputValue from='order->compound_address'}
Комментарий {$order->comment|escape|nl2br}
{* *}
{if !empty($order->products)} {foreach $order->products as $item} {/foreach} {/if} {* *} {if !empty($order->discount_sum)} {/if} {* *} {if !empty($order->delivery_price)} {/if} {* *}
Ваш заказ
{name} {inputValue from='item->variant_name'} {$amount = ($item->quantity < 0) ? $item->quantity * -1 : $item->quantity} {$helper->priceForScreen($item->price * $amount)} {sign}
Скидка   {$helper->priceForScreen($order->discount_sum)} {sign}
{inputValue from='order->delivery_method'}   {$helper->priceForScreen($order->delivery_price)} {sign}

итого:

{$helper->priceForScreen($order->total_amount)} {sign}
{* *} {if empty($order->payment_status)} {if !empty($PaymentMethods)} {foreach $PaymentMethods as $item}
{name} | {$helper->priceForScreen($item->amount, FALSE)} {$item->currency_sign} {if !empty($item->description)}

{plainText from='item->description'}

{/if} {if !empty($item->payment_button)}
{$item->payment_button}
{/if}
{/foreach} {/if} {/if}
{* *} {else}

Страница не найдена!

Нет такой страницы или закрыта для посторонних!
{/if}
{* *} {$meta = '' scope=global} {/strip}