{foreach $orders as $o} {foreachelse} {sprintf('[`%s did not place orders yet.`]', {$contact.name|escape})} {/foreach}
{$wa->shop->orderId($o.id)} {$o.create_datetime|wa_date:'humandate'} {if isset($o.items)} {foreach $o.items as $i} {$i.name|escape} x {$i.quantity}
{/foreach} {/if}
{* !!! TODO: shipping icon *} {if $o.shipping_name} {$o.shipping_name} {else} [`Shipping option not specified`] {/if} {* !!! TODO: payment icon *} {if $o.payment_name} {$o.payment_name} {else} [`Payment option not specified`] {/if} {$o.total_formatted}
[`Add order`]