{$class_id = 's-customer-orders-wrapper'} {$wrapper_id = uniqid($class_id)}
{if !count($orders)}

{sprintf('[`%s did not purchase anything yet.`]', $contact.name|escape)}

{else} {foreach $orders as $o} {/foreach}
{$wa->shop->orderId($o.id)} {$o.create_datetime|wa_date:'humandate'} {$o.total_formatted}
{wa_pagination page=$page total=$pages_count attrs=['class' => "menu-h"] }
{$include_js = $wa->get('include_js')} {* DEFAULT VALUE *} {if $include_js === null} {$include_js = true} {/if} {if $include_js} {/if} {/if}