{* !!! *} {$contact.name|escape} {foreach $contact_categories as $c} {if $c.icon} {$wa->shop->icon16($c.icon)} {/if} {/foreach} {* @event backend_customer.%plugin_id%.name_suffix *} {if !empty($backend_customer)}{foreach $backend_customer as $_}{ifset($_.name_suffix)}{/foreach}{/if}


{* @event backend_customer.%plugin_id%.header *} {if !empty($backend_customer)}{foreach $backend_customer as $_}{ifset($_.header)}{/foreach}{/if}

[`Contact info`]

{foreach $fields as $f} {if $contact->get($f->getId())}
{$f->getName()}
{if $f instanceof waContactAddressField} {foreach $contact->get($f->getId(), 'js') as $a}
{$a.value}
{/foreach} {else}
{$contact->get($f->getId(), 'html')}
{/if}
{/if} {/foreach}


[`Orders`]

{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}


{capture assign="review_list"} {foreach $reviews as $id => $review}
  • {include file="./../product/include.review.html" inline reply_allowed=false}
  • {/foreach} {/capture}

    [`Reviews`]

    {if $reviews}
    {else} {sprintf('[`%s did not place reviews yet.`]', {$contact.name|escape})} {/if}

    [`Affiliate program`]

    {foreach $affiliate_history as $h} {foreachelse} {/foreach}
    [`Credit`] [`Debit`] [`Balance`]
    {$h.create_datetime|wa_date:'humandatetime'} {if $h.order_id} [`Order`] {$wa->shop->orderId($h.order_id)} {/if} {if $h.comment} {$h.comment|escape} {/if} {if $h.amount > 0} {$h.amount|wa_format_number:false} {/if} {if $h.amount < 0} {abs($h.amount)|wa_format_number:false} {/if} {$h.balance|wa_format_number:false}
    [`This customer has no affiliate history yet.`]


    {*

    [`Product reviews`]

    {sprintf('[`%s did not post any product reviews in your storefront yet.`]',$contact.name|escape)}

    *} {* @event backend_customer.%plugin_id%.info_section *} {if !empty($backend_customer)}{foreach $backend_customer as $_}{ifset($_.info_section)}{/foreach}{/if}