{strip} {$_background_color = "#eeeeee"} {$_products_bg = "#ffffff"} {$_bonus_background = "#ffffcc"} {$_button_background = "#fcd630"} {$_main_border_color = "#cccccc"} {$_border_color = "#dddddd"}
{if $order.comment} {/if} {if $is_affiliate_enabled} {else}

{/if}
{$order.id} {$order.create_datetime|wa_date:'humandate'} {$status}

%17%

[`Order status`]

{if !empty($order.params.auth_pin)}

%16%: {$order.params.auth_pin}

{/if}
{$subtotal = 0} {foreach $order.items as $item} {$_border_style = "border: 0;"} {$_is_service = ($item.type == "service")} {if $item@index > 0} {$_border_style = "border: solid `{$_border_color}`; border-width: 1px 0 0;"} {/if} {$subtotal = $subtotal + $item.price * $item.quantity} {/foreach}
{if !$_is_service && !empty($item.product.image.crop_url)} {/if}

{if !$_is_service} {if $_is_service}+ {/if}{$item.name|escape} {if !empty($item.sku_code)} {$item.sku_code|escape}{/if} {else} {if $_is_service}+ {/if}{$item.name|escape} {if !empty($item.sku_code)} {$item.sku_code|escape}{/if} {/if} {if !empty($item.download_link)}%3%{/if}

{wa_currency($item.price, $order.currency)} × {$item.quantity} {wa_currency($item.price * $item.quantity, $order.currency)}
{if !empty((float)$order.discount)} {/if} {if !empty($order.tax)} {/if}
%4% {wa_currency($subtotal, $order.currency)}
%5% − {wa_currency($order.discount, $order.currency)}
%6% {if empty((float)$order.shipping)} [`free`] {else} {wa_currency($order.shipping, $order.currency)} {/if}
%7% {wa_currency($order.tax, $order.currency)}

%2%

{wa_currency($order.total, $order.currency)}

{if strlen($customer->get('email', 'default'))}

[`Email`]: {$customer->get('email', 'default')|escape}

{/if} {if strlen($customer->get('phone', 'default'))}

[`Phone`]: {$customer->get('phone', 'default')|escape}

{/if}

%14%

{$order.comment|escape}

{if !empty($order.params.shipping_name)} %11% — {$order.params.shipping_name} {else} %11% {/if}

{$customer.name|escape}
{$shipping_address}

{if !empty($order.params.payment_name)} %12% — {$order.params.payment_name} {else} %12% {/if}

{$customer.name|escape}
{$billing_address}

{if $add_affiliate_bonus}

{sprintf("[`This order will add +%s points to your affiliate bonus.`]", round($add_affiliate_bonus, 2))}

{if $signup_url} [`Registered customers apply for affiliate bonuses and discounts on future orders.`]  [`Create permanent user account`] {else} {sprintf('[`When this order is paid, your affiliate bonus will be increased to %s.`]', round($customer.affiliate_bonus + $add_affiliate_bonus, 2))} {/if}

{/if}

© {date("Y")} {$wa->shop->settings("name")}
{$order.params.storefront_decoded|default:''}

{/strip}