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

{l s='My Vouchers'}

{if isset($discount) && count($discount) && $nbDiscounts}
{foreach from=$discount item=discountDetail name=myLoop}

{$discountDetail.description|escape:'htmlall':'UTF-8'} ({$discountDetail.name|escape:'htmlall':'UTF-8'})

{l s='Quantity:'} {$discountDetail.quantity_for_user|intval}
{l s='Value:'} {if $discountDetail.id_discount_type == 1} {$discountDetail.value|escape:'htmlall':'UTF-8'}% ({l s='Tax included'}) {elseif $discountDetail.id_discount_type == 2} {convertPrice price=$discountDetail.value|intval} ({l s='Tax included'}) {else} {l s='Free shipping'} {/if}
{l s='Minimum:'} {if $discountDetail.minimal == 0} {l s='none'} {else} {convertPrice price=$discountDetail.minimal} {/if}
{l s='Cumulative:'} {if $discountDetail.cumulable == 1}{l s='Yes'}{else}{l s='No'}{/if}
{l s='Expiration date:'} {dateFormat date=$discountDetail.date_to|escape:'htmlall':'UTF-8'}

{/foreach}
{else}

{l s='You do not possess any vouchers.'}

{/if}
{include file="$tpl_dir./footer-page.tpl"}