{* * 2007-2015 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-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *}
 

{l s='Referral program' mod='referralprogram'} {count($friends)|intval}

{if isset($sponsor)} {l s='Customer\'s sponsor:' mod='referralprogram'} {$sponsor->firstname} {$sponsor->lastname} {else} {l s='No one has sponsored this customer.' mod='referralprogram'} {/if}

{count($friends)|intval} {if count($friends) > 1}{l s='Sponsored customers:' mod='referralprogram''}{else}{l s='Sponsored customer:' mod='referralprogram'}{/if}

{foreach key=key item=friend from=$friends} {/foreach}
{l s='ID' mod='referralprogram'} {l s='Name' mod='referralprogram'} {l s='Email' mod='referralprogram'} {l s='Registration date' mod='referralprogram'} {l s='Customers sponsored by this friend' mod='referralprogram'} {l s='Placed orders' mod='referralprogram'} {l s='Customer account created' mod='referralprogram'}
{if $friend.id_customer}{$friend.id_customer}{else}--{/if} {$friend.firstname} {$friend.lastname} {$friend.email} {$friend.date_add} {$friend.sponsored_friend_count|intval} {$friend.orders_count|intval} {if $friend.id_customer}{else}{/if}