{* * 2007-2011 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA * @copyright 2007-2011 PrestaShop SA * @version Release: $Revision: 8971 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {extends file="helper/view/view.tpl"} {block name="override_tpl"}
{$customer->firstname} {$customer->lastname}
{$customer->email}

{l s='ID:'} {$customer->id|string_format:"%06d"}
{l s='Registration date:'} {$registration_date}
{l s='Last visit:'} {if $customer_stats['last_visit']}{$last_visit}{else}{l s='never'}{/if}
{if $count_better_customers != '-'}{l s='Rank: #'} {$count_better_customers}
{/if} {if $shop_is_feature_active}{l s='Shop:'} {$name_shop}
{/if}
{l s='Newsletter:'} {if $customer->newsletter}{else}{/if}
{l s='Opt-in:'} {if $customer->optin}{else}{/if}
{l s='Age:'} {$customer_stats['age']} {if isset($customer->birthday['age'])}({$customer_birthday}){else}{l s='unknown'}{/if}

{l s='Last update:'} {$last_update}
{l s='Status:'} {if $customer->active}{else}{/if} {if $customer->isGuest()}
{l s='This customer is registered as'} {l s='guest'} {if !$customer_exists}

{l s='This feature generates a random password and sends an e-mail to the customer'}
{else}
{l s='A registered customer account exists with the same email address'} {/if}
{/if}

{l s='Add a private note'}

{l s='This note will be displayed to all the employees but not to the customer.'}


{l s='Messages'} ({count($messages)})

{if count($messages)} {foreach $messages AS $message} {/foreach}
{l s='Status'} {l s='Message'} {l s='Sent on'}
{$message['status']} {$message['message']}... {$message['date_add']}
 
{else} {$customer->firstname} {$customer->lastname} {l s='has never contacted you'} {/if} {* display hook specified to this page : AdminCustomers *}
{hook h="displayAdminCustomers" id_customer=$customer->id}
 

{l s='Groups'} ({count($groups)})

{if $groups AND count($groups)} {foreach $groups AS $key => $group} {/foreach}
{l s='ID'} {l s='Name'} {l s='Actions'}
{$group['id_group']} {$group['name']}
{/if}
 

{l s='Orders'} ({count($orders)})

{if $orders AND count($orders)} {assign var=count_ok value=count($orders_ok)} {if $count_ok}

{l s='Valid orders:'} {$count_ok} {l s='for'} {$total_ok}

{foreach $orders_ok AS $key => $order} {/foreach}
{l s='ID'} {l s='Date'} {l s='Payment'} {l s='State'} {l s='Products'} {l s='Total paid'} {l s='Actions'}
{$order['id_order']} {$order['date_add']} {$order['payment']} {$order['order_state']} {$order['nb_products']} {$order['total_paid_real']}
{/if} {assign var=count_ko value=count($orders_ko)} {if $count_ko}

{l s='Invalid orders:'} {$count_ko}

{foreach $orders_ko AS $key => $order} {/foreach}
{l s='ID'} {l s='Date'} {l s='Payment'} {l s='State'} {l s='Products'} {l s='Total paid'} {l s='Actions'}
{$order['id_order']} {$order['date_add']} {$order['payment']} {$order['order_state']} {$order['nb_products']} {$order['total_paid_real']}
 
{/if} {else} {$customer->firstname} {$customer->lastname} {l s='has not placed any orders yet'} {/if} {if $products AND count($products)}
 

{l s='Products'} ({count($products)})

{foreach $products AS $key => $product} {/foreach}
{l s='Date'} {l s='Name'} {l s='Quantity'} {l s='Actions'}
{$product['date_add']} {$product['product_name']} {$product['product_quantity']}
{/if}
 

{l s='Addresses'} ({count($addresses)})

{if count($addresses)} {foreach $addresses AS $key => $address} {/foreach}
{l s='Company'} {l s='Name'} {l s='Address'} {l s='Country'} {l s='Phone number(s)'} {l s='Actions'}
{if $address['company']}{$address['company']}{else}--{/if} {$address['firstname']} {$address['lastname']} {$address['address1']} {if $address['address2']}{$address['address2']}{/if} {$address['postcode']} {$address['city']} {$address['country']} {if $address['phone']} {$address['phone']} {if $address['phone_mobile']}
{$address['phone_mobile']}{/if} {else} {if $address['phone_mobile']}
{$address['phone_mobile']}{else}--{/if} {/if}
{else} {$customer->firstname} {$customer->lastname} {l s='has not registered any addresses yet'} {/if}
 

{l s='Vouchers'} ({count($discounts)})

{if count($discounts)} {foreach $discounts AS $key => $discount} {/foreach}
{l s='ID'} {l s='Code'} {l s='Name'} {l s='Status'} {l s='Actions'}
{$discount['id_cart_rule']} {$discount['code']} {$discount['name']} {l s='Status'}
{else} {$customer->firstname} {$customer->lastname} {l s='has no discount vouchers'}. {/if}
 

{l s='Carts'} ({count($carts)})

{if $carts AND count($carts)} {foreach $carts AS $key => $cart} {/foreach}
{l s='ID'} {l s='Date'} {l s='Carrier'} {l s='Total'} {l s='Actions'}
{$cart['id_cart']} {$cart['date_add']} {$cart['name']} {$cart['total_price']}
{else} {l s='No cart available'}. {/if}
{if count($interested)}

{l s='Products'} ({count($interested)})

{foreach $interested as $key => $p} {/foreach}
{$p['id']} {$p['name']}
{/if}
 
{* Last connections *} {if count($connections)}

{l s='Last connections'}

{foreach $connections as $connection} {/foreach}
{l s='Date'} {l s='Pages viewed'} {l s='Total time'} {l s='Origin'} {l s='IP Address'}
{$connection['date_add']} {$connection['pages']} {$connection['time']} {$connection['http_referer']} {$connection['ipaddress']}
 
{/if} {if count($referrers)}

{l s='Referrers'}

{if $shop_is_feature_active}{/if} {foreach $referrers as $referrer} {if $shop_is_feature_active}{/if} {/foreach}
{l s='Date'} {l s='Name'}{l s='Shop'}
{$referrer['date_add']} {$referrer['name']}{$referrer['shop_name']}
{/if} {/block}