{* Вкладки *} {capture name=tabs} {if in_array('orders', $manager->permissions)}
  • status==0}class="active"{/if}>Новые
  • status==1}class="active"{/if}>Приняты
  • status==2}class="active"{/if}>Выполнены
  • status==3}class="active"{/if}>Удалены
  • status==999}class="active"{/if}>Потеряны
  • {if $keyword}
  • Поиск
  • {/if} {/if} {if in_array('labels', $manager->permissions)}
  • Метки
  • {/if} {/capture} {if $order->id} {$meta_title = "Заказ №`$order->id`" scope=parent} {else} {$meta_title = 'Новый заказ' scope=parent} {/if}

    {if $order->id}Заказ №{$order->id|escape}{else}Новый заказ{/if} {if $order->status != 999} {/if}

    {if $prev_order} {/if} {if $next_order} {/if}
    {if $message_error}
    {if $message_error=='error_closing'}Нехватка товара на складе{else}{$message_error|escape}{/if} {if $smarty.get.return} Вернуться {/if}
    {elseif $message_success}
    {if $message_success=='updated'}Заказ обновлен{elseif $message_success=='added'}Заказ добавлен{else}{$message_success}{/if} {if $smarty.get.return} Вернуться {/if}
    {/if}

    Детали заказа Редактировать

    • {$order->date} {$order->time}
    • {$order->name|escape}
    • {$order->name2|escape}
    • {if $order->phone} {$order->phone|escape}{else}{$order->phone|escape}{/if}
    • {$order->country|escape}
    • {$order->region|escape}
    • {$order->city|escape}
    • {$order->indx|escape}
    • {$order->address|escape}
    • {$order->comment|escape|nl2br}
    {if $labels}

    Метка

      {foreach $labels as $l}
    • {/foreach}
    {/if}

    Покупатель Редактировать {if $user}Удалить{/if}

    {if !$user} Не зарегистрирован {else} {$user->name|escape} ({$user->email|escape}) {/if}

    Примечание Редактировать

    • note}style='display:none;'{/if}>
      {$order->note|escape}
    {foreach from=$purchases item=purchase}
    id}] value='{$purchase->id}'> {$image = $purchase->product->images|first} {if $image} {/if}
    {$purchase->variant_name} {if $purchase->sku}(арт. {$purchase->sku}){/if}
    {if $purchase->product} {$purchase->product_name} {else} {$purchase->product_name} {/if}
    {foreach from=$purchase->options item=opt key=ok} {assign var=f value=$features[$ok]}

    {$opt}

    {/foreach}
    {$purchase->price} {$currency->sign}
    {$purchase->amount} {$settings->units}
    {if !$order->closed} {if !$purchase->product} Товар был удалён {elseif !$purchase->variant} Вариант товара был удалён {elseif $purchase->variant->stock < $purchase->amount} На складе остал{$purchase->variant->stock|plural:variant->stock} товар{$purchase->variant->stock|plural:'':'ов':'а'}' title='На складе остал{$purchase->variant->stock|plural:'ся':'ось'} {$purchase->variant->stock} товар{$purchase->variant->stock|plural:'':'ов':'а'}' > {/if} {/if}
    {/foreach}
    {if $purchases} редактировать покупки {/if} {if $purchases}
    Всего {$subtotal} {$currency->sign}
    {/if}

    Скидка

    %
    С учетом скидки {($subtotal-$subtotal*$order->discount/100)|round:2} {$currency->sign}

    Купон{if $order->coupon_code} ({$order->coupon_code}){/if}

    {$currency->sign}
    С учетом купона {($subtotal-$subtotal*$order->discount/100-$order->coupon_discount)|round:2} {$currency->sign}

    Доставка

    {$currency->sign}
    separate_delivery}checked{/if}>
    Итого {$order->total_price} {$currency->sign}

    Оплата

    paid}checked{/if}>
    {if $payment_method}
    К оплате {$order->total_price|convert:$payment_currency->id} {$payment_currency->sign}
    {/if}

    {* On document load *} {literal} {/literal}