{strip} {$_title = $order.id_str} {$wa->globals("globalHeader", $_title)} {$wa->globals("isMyAccount", true)} {$wa->globals("isMyOrderPage", true)} {function name="_renderContact" contact=[] title="" address=""}
{$contact.name|escape}
{$title}:
{$contact.name|escape}
{if $address}
[`Address`]:
{$address}
{/if}
{/function}
{if empty($pin_required)}
[`Order`] {$order.id_str} [`from`] {$order.create_datetime|wa_datetime:'humandate'} {$order.create_datetime|wa_datetime:'time'}
{$order.state->getName()}
{if !empty($order.shipping_name)}
[`Shipping method`]:
{$order.shipping_name|escape}
{/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 !empty($order.comment)}
[`Comment`]:
{$order.comment|escape}
{/if} {if !empty($order.payment_name)}
[`Payment method`]:
{$order.payment_name|escape}
{/if} {if !empty($order.total)}
[`Amount`]: {wa_currency_html($order.total, $order.currency)}
{/if} {if !empty($payment)}
{$payment}
{/if}
{_renderContact contact=$contact address=$shipping_address title="[`Ship to`]"} {if !empty($billing_address)} {_renderContact contact=$contact address=$billing_address title="[`Bill to`]"} {/if}
{foreach $order.items as $item} {/foreach} {if $order.tax > 0} {/if}
[`Price`] x [`Quantity`] [`Total`]
{$item.name} {if $item.type == 'product' && !empty($item.download_link)} [`Download`] {/if} {wa_currency_html($item.price, $order.currency)} x {$item.quantity} {wa_currency_html($item.price * $item.quantity, $order.currency)}
[`Subtotal`] {wa_currency_html($subtotal, $order.currency)}
[`Discount`] − {wa_currency_html($order.discount, $order.currency)}
[`Shipping`] {if !empty($order.params.shipping_name)} — {$order.params.shipping_name}{/if}
{wa_currency_html($order.shipping, $order.currency)}
[`Tax`] {wa_currency_html($order.tax, $order.currency)}
[`Total`] {wa_currency_html($order.total, $order.currency)}
{else}
[`Order`] {$encoded_order_id}
{if !empty($wrong_pin)}

[`PIN is not valid`]

{/if}

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

{/if} {* @event frontend_my_order.%plugin_id% *} {foreach $frontend_my_order as $_}{$_}{/foreach}
{/strip}