139 lines
7.3 KiB
Smarty
Executable File
139 lines
7.3 KiB
Smarty
Executable File
{*
|
|
* 2007-2014 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 <contact@prestashop.com>
|
|
* @copyright 2007-2014 PrestaShop SA
|
|
* @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}<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">{l s='My account'}</a><span class="navigation-pipe">{$navigationPipe}</span><span class="navigation_page">{l s='My vouchers'}</span>{/capture}
|
|
<div class="row">
|
|
<div class='snotmobile col-xs-3 left-account'>
|
|
<div class="block-left-account">
|
|
<h2 class="account">{l s='Votre compte'}</h2>
|
|
<ul>
|
|
<li>
|
|
<a href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}" title="{l s='Mes commandes'}">
|
|
{l s='Mes commandes'}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="{$link->getPageLink('identity', true)|escape:'html':'UTF-8'}" title="{l s='Mes infos personnelles'}">
|
|
{l s='Mes infos personnelles'}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="{$link->getPageLink('addresses', true)|escape:'html':'UTF-8'}" title="{l s='Mon carnet d\'adresse'}">
|
|
{l s='Mon carnet d\'adresse'}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="{$link->getPageLink('order-slip', true)|escape:'html':'UTF-8'}" title="{l s='Mes avoirs'}">
|
|
{l s='Mes avoirs'}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="{$link->getPageLink('order-follow', true)|escape:'html':'UTF-8'}" title="{l s='Mes retours produits'}">
|
|
{l s='Mes retours produits'}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="{$link->getModuleLink('ant_nw_frequences','frequence')|escape:'html':'UTF-8'}" title="{l s='Mes Newsletters'}">
|
|
{l s='Mes newsletters'}
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="block-left-account">
|
|
<h2 class="vouchers">{l s='Mes bons d\'achats'}</h2>
|
|
<ul>
|
|
<li class="active">
|
|
<a href="{$link->getPageLink('discount', true)|escape:'html':'UTF-8'}" title="{l s='Mes bons d\'achats'}">
|
|
{l s='Mes bons d\'achats'}
|
|
</a>
|
|
</li>
|
|
{hook h='displayCustomerAccount' }
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class='col-xs-12 col-sm-9 right-account'>
|
|
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'} " class="smobile btn-back" >
|
|
{l s='Retour au compte'}
|
|
</a>
|
|
<h1 class="page-heading">
|
|
{l s='My vouchers'}<span class="shape-red-long"></span>
|
|
</h1>
|
|
|
|
{if isset($cart_rules) && count($cart_rules) && $nb_cart_rules}
|
|
<table class="discount table">
|
|
<thead>
|
|
<tr>
|
|
<th data-sort-ignore="true" class="discount_code first_item">{l s='Code'}</th>
|
|
<th data-sort-ignore="true" class="discount_description item tablehide">{l s='Description'}</th>
|
|
<th class="discount_quantity item">{l s='Quantity'}</th>
|
|
<th data-sort-ignore="true" data-hide="phone,tablet" class="discount_value item">{l s='Value'}*</th>
|
|
<th data-hide="phone,tablet" class="discount_minimum tablehide item">{l s='Minimum'}</th>
|
|
<th data-sort-ignore="true" data-hide="phone,tablet" class="discount_cumulative item tablehide">{l s='Cumulative'}</th>
|
|
<th data-hide="phone" class="discount_expiration_date last_item tablehide">{l s='Expiration date'}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$cart_rules item=discountDetail name=myLoop}
|
|
<tr class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{/if}">
|
|
<td class="discount_code">{$discountDetail.code}</td>
|
|
<td class="discount_description tablehide">{$discountDetail.name}</td>
|
|
<td data-value="{$discountDetail.quantity_for_user}" class="discount_quantity">{$discountDetail.quantity_for_user}</td>
|
|
<td class="discount_value price">
|
|
{if $discountDetail.id_discount_type == 1}
|
|
{$discountDetail.value|escape:'html':'UTF-8'}%
|
|
{elseif $discountDetail.id_discount_type == 2}
|
|
{convertPrice price=$discountDetail.value} ({if $discountDetail.reduction_tax == 1}{l s='Tax included'}{else}{l s='Tax excluded'}{/if})
|
|
{elseif $discountDetail.id_discount_type == 3}
|
|
{l s='Free shipping'}
|
|
{else}
|
|
-
|
|
{/if}
|
|
</td>
|
|
<td class="discount_minimum tablehide" data-value="{if $discountDetail.minimal == 0}0{else}{$discountDetail.minimal}{/if}">
|
|
{if $discountDetail.minimal == 0}
|
|
{l s='None'}
|
|
{else}
|
|
{convertPrice price=$discountDetail.minimal}
|
|
{/if}
|
|
</td>
|
|
<td class="discount_cumulative tablehide">
|
|
{if $discountDetail.cumulable == 1}
|
|
<i class="icon-ok icon"></i> {l s='Yes'}
|
|
{else}
|
|
<i class="icon-remove icon"></i> {l s='No'}
|
|
{/if}
|
|
</td>
|
|
<td class="discount_expiration_date tablehide" data-value="{$discountDetail.date_to|regex_replace:"/[\-\:\ ]/":""}">
|
|
{dateFormat date=$discountDetail.date_to}
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
{else}
|
|
<p class="alert alert-warning">{l s='You do not have any vouchers.'}</p>
|
|
{/if}
|
|
</div>
|
|
</div>
|