{* * 2007-2017 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-2017 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {extends file="helpers/view/view.tpl"} {block name="override_tpl"}
{*left*}
{$customer->firstname} {$customer->lastname} [{$customer->id|string_format:"%06d"}] - {$customer->email}

{if $gender->name}{$gender->name}{else}{l s='Unknown'}{/if}

{if isset($customer->birthday) && $customer->birthday != '0000-00-00'} {l s='%1$d years old (birth date: %2$s)' sprintf=[$customer_stats['age'], $customer_birthday]} {else} {l s='Unknown'} {/if}

{$registration_date}

{if $customer_stats['last_visit']}{$last_visit}{else}{l s='Never'}{/if}

{if $count_better_customers != '-'}

{$count_better_customers}

{/if} {if $shop_is_feature_active}

{$name_shop}

{/if}

{if isset($customerLanguage)} {$customerLanguage->name} {else} {l s='Unknown'} {/if}

{if $customer->newsletter} {l s='Newsletter'} {else} {l s='Newsletter'} {/if}   {if $customer->optin} {l s='Opt in'} {else} {l s='Opt in'} {/if}

{$last_update}

{if $customer->active} {l s='Active'} {else} {l s='Inactive'} {/if}

{if $customer->isGuest()} {l s='This customer is registered as a Guest.'} {if !$customer_exists}

{l s='This feature generates a random password before sending an email to your customer.'}
{else}

{l s='A registered customer account using the defined email address already exists. '}

{/if} {/if}
{l s='Orders'} {count($orders)}
{if $orders AND count($orders)} {assign var=count_ok value=count($orders_ok)} {assign var=count_ko value=count($orders_ko)}
{l s='Valid orders:'} {$count_ok} {l s='for a total amount of %s' sprintf=$total_ok}
{l s='Invalid orders:'} {$count_ko}
{if $count_ok} {foreach $orders_ok AS $key => $order} {/foreach}
{l s='ID'} {l s='Date'} {l s='Payment'} {l s='Status'} {l s='Products'} {l s='Total spent'}
{$order['id_order']} {dateFormat date=$order['date_add'] full=0} {$order['payment']} {$order['order_state']} {$order['nb_products']} {$order['total_paid_real']} {l s='View'}
{/if} {if $count_ko} {foreach $orders_ko AS $key => $order} {/foreach}
{l s='ID'} {l s='Date'} {l s='Payment'} {l s='Status'} {l s='Products'} {l s='Total spent'}
{$order['id_order']} {dateFormat date=$order['date_add'] full=0} {$order['payment']} {$order['order_state']} {$order['nb_products']} {$order['total_paid_real']}
{/if} {else}

{l s='%1$s %2$s has not placed any orders yet' sprintf=[$customer->firstname, $customer->lastname]}

{/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'}
{$cart['id_cart']} {dateFormat date=$cart['date_upd'] full=0} {$cart['name']} {$cart['total_price']}
{else}

{l s='No cart is available'}

{/if}
{if $products AND count($products)}
{l s='Purchased products'} {count($products)}
{foreach $products AS $key => $product} {/foreach}
{l s='Date'} {l s='Name'} {l s='Quantity'}
{dateFormat date=$product['date_add'] full=0} {$product['product_name']} {$product['product_quantity']}
{/if} {if count($interested)}
{l s='Viewed products'} {count($interested)}
{foreach $interested as $key => $p} {/foreach}
{l s='ID'} {l s='Name'}
{$p['id']} {$p['name']}
{/if}
{*right*}
{l s='Add a private note'}
{l s='This note will be displayed to all employees but not to customers.'}
{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}

{l s='%1$s %2$s has never contacted you' sprintf=[$customer->firstname, $customer->lastname]}

{/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='Qty available'} {l s='Actions'}
{$discount['id_cart_rule']} {$discount['code']} {$discount['name']} {if $discount['active']} {else} {/if} {if $discount['quantity'] > 0}{$discount['quantity_for_user']|intval}{else}0{/if}
{else}

{l s='%1$s %2$s has no discount vouchers' sprintf=[$customer->firstname, $customer->lastname]}

{/if}
{if count($emails)}
{l s='Last emails'}
{foreach $emails as $email} {/foreach}
{l s='Date'} {l s='Language'} {l s='Subject'} {l s='Template'}
{dateFormat date=$email['date_add'] full=1} {$email['language']} {$email['subject']} {$email['template']}
{/if} {if count($connections)}
{l s='Last connections'}
{foreach $connections as $connection} {/foreach}
{l s='ID'} {l s='Date'} {l s='Pages viewed'} {l s='Total time'} {l s='Origin'} {l s='IP Address'}
{$connection['id_connections']} {dateFormat date=$connection['date_add'] full=0} {$connection['pages']} {$connection['time']} {$connection['http_referer']} {$connection['ipaddress']}
{/if}
{l s='Groups'} {count($groups)} {l s='Edit'}
{if $groups AND count($groups)} {foreach $groups AS $key => $group} {/foreach}
{l s='ID'} {l s='Name'}
{$group['id_group']} {$group['name']}
{/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'}
{dateFormat date=$order['date_add'] full=0} {$referrer['name']}{$referrer['shop_name']}
{/if}
{* display hook specified to this page : AdminCustomers *} {hook h="displayAdminCustomers" id_customer=$customer->id|intval}
{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)'}
{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}

{l s='%1$s %2$s has not registered any addresses yet' sprintf=[$customer->firstname, $customer->lastname]}

{/if}
{/block}