|
{$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}
{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)}
|
{$subtotal = $subtotal + $item.price * $item.quantity}
{/foreach}
|
|
|
%4% |
{wa_currency($subtotal, $order.currency)} |
{if !empty((float)$order.discount)}
%5% |
− {wa_currency($order.discount, $order.currency)} |
{/if}
%6% |
{if empty((float)$order.shipping)}
[`free`]
{else}
{wa_currency($order.shipping, $order.currency)}
{/if}
|
{if !empty($order.tax)}
%7% |
{wa_currency($order.tax, $order.currency)} |
{/if}
%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}
|
|
{if $order.comment}
|
%14%
{$order.comment|escape}
|
|
{/if}
|
{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 $is_affiliate_enabled}
|
{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}
|
|
{else}
{/if}