{if !empty($pin_required)}

[`Order`] {$encoded_order_id}

{if $wrong_pin}

[`PIN is not valid`]

{/if}

[`Please enter a 4-digit PIN that you received with your order receipt by email.`]

{else}
{$wa->myNav('subcategory')}
{include file="`$wa_active_theme_path`/breadcrumb.html" inline}

[`Order`] {$order.id_str} {$order.state->getName()}

{$order.create_datetime|wa_date:'humandatetime'}

{if !empty($payment)}
{$payment}
{/if} {foreach $order.items as $item} {/foreach} {if $order.payment_name} {/if} {if $order.tax > 0} {/if}
[`Quantity`] [`Total`]
{if $item.type == 'service'}+ {/if} {$item.name} {if $item.type == 'product' && !empty($item.download_link)}[`Download`]{/if} {wa_currency($item.price, $order.currency)} x{$item.quantity} {wa_currency($item.price * $item.quantity, $order.currency)}
[`Subtotal`] {wa_currency($subtotal, $order.currency)}
[`Discount`] {wa_currency($order.discount, $order.currency)}
[`Shipping`] {if !empty($order.params.shipping_name)} ({$order.params.shipping_name}) {/if} {wa_currency($order.shipping, $order.currency)}
[`Payment`] ({$order.payment_name})
[`Tax`] {wa_currency($order.tax, $order.currency)}
[`Total`] {wa_currency($order.total, $order.currency)}
[`Shipping address`]{if $order.shipping_name} — {$order.shipping_name}{/if}
{if !empty($order.params.tracking_number)} [`Shipment tracking number`]: {$order.params.tracking_number}
{/if} {if !empty($tracking) && $order.state->getId() != 'completed'}
{$tracking}
{/if} {if $shipping_address}
{$shipping_address}
{/if}
[`Contacts`]

{$contact.name|escape}
{if $billing_address} {$billing_address} {/if}

{if !empty($order.comment)}
[`Comment`]

{$order.comment|escape}

{/if}
{/if} {$wa->globals('isMyAccount', true)} {* @event frontend_my_order.%plugin_id% *} {foreach $frontend_my_order as $_}{$_}{/foreach}