{* !!! *} {$contact.name|escape} {* @event backend_customer.%plugin_id%.name_suffix *} {if !empty($backend_customer)}{foreach $backend_customer as $_}{ifset($_.name_suffix)}{/foreach}{/if}

{include file="./include.top_fields.html" top=$top similar_contacts=$similar_contacts need_other_values=true inline}

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

{if $total_paid_num > 0} {$total_paid_str} {if $days_ago < 1} [`Last paid order: today`] {else} {_w('Last paid order: %d day ago', 'Last paid order: %d days ago', $days_ago)} {/if} {else} [`No paid orders yet`] {/if}

{$orders_html|default:''}

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

    [`Product reviews`]

    {if $reviews}
    {else}

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

    {/if}

    [`Affiliate program`]

    {if !count($affiliate_history)}

    {sprintf('[`%s has no affiliate history yet.`]', $contact.name|escape)}

    {/if} {if count($affiliate_history)} {foreach $affiliate_history as $h} {/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}
    {else} {/if}

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