[`Orders`]

{$wa->title()}

{* Workflow state and actions *}
{if $order.paid_date}
[`Paid`]
{/if}
{$workflow_state->getName()}
    {foreach $workflow_buttons as $b}
  • {$b}
  • {/foreach}
{* Customer info *}

{$customer->getName()|escape}

{if $top} {foreach from=$top item=top_field}

{$top_field.name}: {$top_field.value}

{/foreach} {/if}
{* Order comment *} {if $order.comment}
{$order.comment}
{/if} {* Shipping and payment info *}
{if !empty($order.params.shipping_name)}

[`Shipping`] — {$order.params.shipping_name} {if $shipping_address}
{$shipping_address} {/if}

{/if} {if !empty($order.params.payment_name)}

[`Payment`] — {$order.params.payment_name} {if $billing_address}
{$billing_address} {/if}

{/if}
{* Order items *}
    {foreach $order.items as $i}
  • x {$i.quantity} {$i.name}
  • {/foreach}
  • {wa_currency_html($order_subtotal, $currency)} [`Subtotal`]
  • {if !empty($order.params.shipping_name)}
  • {wa_currency_html($order.shipping, $currency)} [`Shipping`]
  • {/if} {if !empty($order.tax)}
  • {wa_currency_html($order.tax, $currency)} [`Tax`]
  • {/if} {if !empty($order.discount)}
  • {wa_currency_html($order.discount, $currency)} [`Discount`]
  • {/if}
  • {wa_currency_html($order.total, $currency)} [`Total`]
{* Order history *}
    {foreach $log as $row}
  • {$row.datetime|wa_datetime:"humandatetime"}
    {if $row.action_id} {$row.contact_name|escape} [`performed action`] {$row.action_id} {if $row.text}{$row.text|escape}{/if} {else} {if $row.text}{$row.text}{/if} {/if}
  • {/foreach}