{$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}
{$o.state_name} {if !empty($o.is_point_of_sale)} {/if} {$wa->shop->orderId($o.id)} {$o.total_formatted} {if $o.paid_date} {/if}
{wa_pagination page=$page total=$pages_count attrs=['class' => "menu s-paginator-menu"] }
{$include_js = $wa->get('include_js')} {* DEFAULT VALUE *} {if $include_js === null} {$include_js = true} {/if} {if $include_js} {/if} {/if}