{* * 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: 8084 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {capture name=path}{l s='My account' mod='referralprogram'}{$navigationPipe}{l s='Referral Program' mod='referralprogram'}{/capture} {include file="$tpl_dir./breadcrumb.tpl"}

{l s='Referral program' mod='referralprogram'}

{if $error}

{if $error == 'conditions not valided'} {l s='You need to agree to the conditions of the referral program!' mod='referralprogram'} {elseif $error == 'email invalid'} {l s='At least one e-mail address is invalid!' mod='referralprogram'} {elseif $error == 'name invalid'} {l s='At least one first name or last name is invalid!' mod='referralprogram'} {elseif $error == 'email exists'} {l s='Someone with this e-mail address has already been sponsored!' mod='referralprogram'}: {foreach from=$mails_exists item=mail}{$mail} {/foreach} {elseif $error == 'no revive checked'} {l s='Please mark at least one checkbox' mod='referralprogram'} {elseif $error == 'cannot add friends'} {l s='Cannot add friends to database' mod='referralprogram'} {/if}

{/if} {if $invitation_sent}

{if $nbInvitation > 1} {l s='E-mails have been sent to your friends!' mod='referralprogram'} {else} {l s='An e-mail has been sent to your friend!' mod='referralprogram'} {/if}

{/if} {if $revive_sent}

{if $nbRevive > 1} {l s='Reminder e-mails have been sent to your friends!' mod='referralprogram'} {else} {l s='A reminder e-mail has been sent to your friend!' mod='referralprogram'} {/if}

{/if}

{l s='Get a discount of' mod='referralprogram'} {$discount} {l s='for you and your friends by recommending this Website.' mod='referralprogram'}

{if $canSendInvitations}

{l s='It\'s quick and it\'s easy. Just fill in the first name, last name, and e-mail address(es) of your friend(s) in the fields below.' mod='referralprogram'} {l s='When one of them makes at least' mod='referralprogram'} {$orderQuantity} {if $orderQuantity > 1}{l s='orders' mod='referralprogram'}{else}{l s='order' mod='referralprogram'}{/if}, {l s='he or she will receive a' mod='referralprogram'} {$discount} {l s='voucher and you will receive your own voucher worth' mod='referralprogram'} {$discount}.

{section name=friends start=0 loop=$nbFriends step=1} {/section}
  {l s='Last name' mod='referralprogram'} {l s='First name' mod='referralprogram'} {l s='E-mail' mod='referralprogram'}
{$smarty.section.friends.iteration}

{l s='Important: Your friends\' e-mail addresses will only be used in the referral program. They will never be used for other purposes.' mod='referralprogram'}

{l s='Read conditions.' mod='referralprogram'}

{l s='Preview' mod='referralprogram'} {l s='the default e-mail' mod='referralprogram'} {l s='that will be sent to your friend(s).' mod='referralprogram'}

{else}

{l s='To become a sponsor, you need to have completed at least' mod='referralprogram'} {$orderQuantity} {if $orderQuantity > 1}{l s='orders' mod='referralprogram'}{else}{l s='order' mod='referralprogram'}{/if}.

{/if}
{if $pendingFriends AND $pendingFriends|@count > 0}

{l s='These friends have not yet placed an order on this Website since you sponsored them, but you can try again! To do so, mark the checkboxes of the friend(s) you want to remind, then click on the button "Remind my friend(s)"' mod='referralprogram'}

{foreach from=$pendingFriends item=pendingFriend name=myLoop} {/foreach}
  {l s='Last name' mod='referralprogram'} {l s='First name' mod='referralprogram'} {l s='E-mail' mod='referralprogram'} {l s='Last invitation' mod='referralprogram'}
{$pendingFriend.firstname|substr:0:22} {$pendingFriend.email} {dateFormat date=$pendingFriend.date_upd full=1}

{else}

{l s='You have not sponsored any friends.' mod='referralprogram'}

{/if}
{if $subscribeFriends AND $subscribeFriends|@count > 0}

{l s='Here are sponsored friends who have accepted your invitation:' mod='referralprogram'}

{foreach from=$subscribeFriends item=subscribeFriend name=myLoop} {/foreach}
  {l s='Last name' mod='referralprogram'} {l s='First name' mod='referralprogram'} {l s='E-mail' mod='referralprogram'} {l s='Inscription date' mod='referralprogram'}
{$smarty.foreach.myLoop.iteration}. {$subscribeFriend.lastname|substr:0:22} {$subscribeFriend.firstname|substr:0:22} {$subscribeFriend.email} {dateFormat date=$subscribeFriend.date_upd full=1}
{else}

{l s='No sponsored friends have accepted your invitation yet.' mod='referralprogram'}

{/if}