123 lines
6.6 KiB
Smarty
123 lines
6.6 KiB
Smarty
|
{*
|
||
|
* 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 addresses'}</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 class="active">
|
||
|
<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='Vos bons d\'achats'}</h2>
|
||
|
<ul>
|
||
|
{hook h='displayCustomerAccount' }
|
||
|
<li>
|
||
|
<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>
|
||
|
</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 bottom-indent">{l s='Mon carnet d\'adresse'}<span class="shape-red-long"></span></h1>
|
||
|
<p>{l s='Please configure your default billing and delivery addresses when placing an order. You may also add additional addresses, which can be useful for sending gifts or receiving an order at your office.'}</p>
|
||
|
{if isset($multipleAddresses) && $multipleAddresses}
|
||
|
<div class="addresses">
|
||
|
<p>{l s='Your addresses are listed below.'}</p>
|
||
|
<p class="p-indent">{l s='Be sure to update your personal information if it has changed.'}</p>
|
||
|
{assign var="adrs_style" value=$addresses_style}
|
||
|
<div class="bloc_adresses clearfix ">
|
||
|
{foreach from=$multipleAddresses item=address name=myLoop}
|
||
|
<div class="col-xs-12 col-sm-6 box">
|
||
|
<ul class="{if $smarty.foreach.myLoop.last}last_item{elseif $smarty.foreach.myLoop.first}first_item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{else}item{/if} address">
|
||
|
<li><h3 class="page-subheading">{$address.object.alias}</h3></li>
|
||
|
{foreach from=$address.ordered name=adr_loop item=pattern}
|
||
|
{assign var=addressKey value=" "|explode:$pattern}
|
||
|
<li>
|
||
|
{foreach from=$addressKey item=key name="word_loop"}
|
||
|
<span {if isset($addresses_style[$key])} class="{$addresses_style[$key]}"{/if}>
|
||
|
{$address.formated[$key|replace:',':'']|escape:'html':'UTF-8'}
|
||
|
</span>
|
||
|
{/foreach}
|
||
|
</li>
|
||
|
{/foreach}
|
||
|
<li class="address_update">
|
||
|
<a href="{$link->getPageLink('address', true, null, "id_address={$address.object.id|intval}")|escape:'html':'UTF-8'}" title="{l s='Update'}">
|
||
|
<span class="text-link">{l s='Update'}</span>
|
||
|
<span class="diamond_border"></span>
|
||
|
</a>
|
||
|
<a href="{$link->getPageLink('address', true, null, "id_address={$address.object.id|intval}&delete")|escape:'html':'UTF-8'}" onclick="return confirm('{l s='Are you sure?' js=1}');" title="{l s='Delete'}">
|
||
|
<span class="text-link">{l s='Delete'}</span>
|
||
|
<span class="diamond_border"></span>
|
||
|
</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
{/foreach}
|
||
|
</div>
|
||
|
</div>
|
||
|
{else}
|
||
|
<p class="alert alert-warning">{l s='No addresses are available.'} <a href="{$link->getPageLink('address', true)|escape:'html':'UTF-8'}">{l s='Add a new address'}</a></p>
|
||
|
{/if}
|
||
|
<div class="clearfix main-page-indent address_add submit">
|
||
|
<a href="{$link->getPageLink('address', true)|escape:'html':'UTF-8'}" title="{l s='Add an address'}" class="button-grey right"><span>{l s='Add a new address'}</span></a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|