{* * 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'}{$navigationPipe}{l s='My loyalty points' mod='loyalty'}{/capture} {include file="$tpl_dir./breadcrumb.tpl"}

{l s='My loyalty points' mod='loyalty'}

{if $nb_orders}
{if $nb_orders && $nb_orders>0} {foreach from=$displayorders item='order'} {/foreach}
{l s='Order' mod='loyalty'} {l s='Date' mod='loyalty'} {l s='Points' mod='loyalty'} {l s='Points Status' mod='loyalty'}
{l s='Total points available:' mod='loyalty'} {$totalPoints|intval}  
{dateFormat date=$order.date full=1} {$order.points|intval} {$order.state|escape:'htmlall':'UTF-8'}
{else}

{l s='You have not placed any orders.'}

{/if}

{l s='Vouchers generated here are usable in the following categories : ' mod='loyalty'} {if $categories}{$categories}{else}{l s='All' mod='loyalty'}{/if} {if $transformation_allowed}

{l s='Transform my points into a voucher of' mod='loyalty'} {convertPrice price=$voucher}.

{/if}

{l s='My vouchers from loyalty points' mod='loyalty'}

{if $nbDiscounts}
{foreach from=$discounts item=discount name=myLoop} {/foreach}
{l s='Created' mod='loyalty'} {l s='Value' mod='loyalty'} {l s='Code' mod='loyalty'} {l s='Valid from' mod='loyalty'} {l s='Valid until' mod='loyalty'} {l s='Status' mod='loyalty'} {l s='Details' mod='loyalty'}
{dateFormat date=$discount->date_add} {if $discount->id_discount_type == 1} {$discount->value}% {elseif $discount->id_discount_type == 2} {displayPrice price=$discount->value currency=$discount->id_currency} {else} {l s='Free shipping' mod='loyalty'} {/if} {$discount->name} {dateFormat date=$discount->date_from} {dateFormat date=$discount->date_to} {if $discount->quantity > 0}{l s='To use' mod='loyalty'}{else}{l s='Used' mod='loyalty'}{/if} {l s='more...' mod='loyalty'}
{if $minimalLoyalty > 0}

{l s='The minimum order amount in order to use these vouchers is:'} {convertPrice price=$minimalLoyalty}

{/if} {else}

{l s='No vouchers yet.' mod='loyalty'}

{/if} {else}

{l s='No reward points yet.' mod='loyalty'}

{/if}