updated address page
This commit is contained in:
@@ -50,6 +50,8 @@ class AddressesControllerCore extends FrontController
|
||||
{
|
||||
parent::init();
|
||||
|
||||
Tools::redirect($this->context->link->getPageLink('address'));
|
||||
|
||||
if (!Validate::isLoadedObject($this->context->customer)) {
|
||||
die(Tools::displayError('The customer could not be found.'));
|
||||
}
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
<li><a href="{$link->getPageLink('history', true)|escape:'html'}" title="">{l s='My orders' mod='blockmyaccount'}</a></li>
|
||||
{if $returnAllowed}<li><a href="{$link->getPageLink('order-follow', true)|escape:'html'}" title="{l s='My merchandise returns' mod='blockmyaccount'}">{l s='My merchandise returns' mod='blockmyaccount'}</a></li>{/if}
|
||||
<li><a href="{$link->getPageLink('order-slip', true)|escape:'html'}" title="{l s='My credit slips' mod='blockmyaccount'}">{l s='My credit slips' mod='blockmyaccount'}</a></li>
|
||||
<li><a href="{$link->getPageLink('addresses', true)|escape:'html'}" title="{l s='My addresses' mod='blockmyaccount'}">{l s='My addresses' mod='blockmyaccount'}</a></li>
|
||||
<li><a href="{$link->getPageLink('identity', true)|escape:'html'}" title="{l s='My personal info' mod='blockmyaccount'}">{l s='My personal info' mod='blockmyaccount'}</a></li>
|
||||
{if $voucherAllowed}<li><a href="{$link->getPageLink('discount', true)|escape:'html'}" title="{l s='My vouchers' mod='blockmyaccount'}">{l s='My vouchers' mod='blockmyaccount'}</a></li>{/if}
|
||||
{$HOOK_BLOCK_MY_ACCOUNT}
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
* @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='Your addresses'}{/capture}
|
||||
{capture name=path}{l s='Your address'}{/capture}
|
||||
<div class="box">
|
||||
<h1 class="page-subheading">{l s='Your addresses'}</h1>
|
||||
<h1 class="page-subheading">{l s='Your address'}</h1>
|
||||
<p class="info-title">
|
||||
{if isset($id_address) && (isset($smarty.post.alias) || isset($address->alias))}
|
||||
{l s='Modify address'}
|
||||
@@ -199,8 +199,8 @@
|
||||
</div>
|
||||
<ul class="footer_links clearfix">
|
||||
<li>
|
||||
<a class="btn btn-defaul button button-small" href="{$link->getPageLink('addresses', true)|escape:'html':'UTF-8'}">
|
||||
<span><i class="icon-chevron-left"></i> {l s='Back to your addresses'}</span>
|
||||
<a class="btn btn-defaul button button-small" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
<span><i class="icon-chevron-left"></i> {l s='Back to your account'}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -48,11 +48,6 @@
|
||||
<a href="{$link->getPageLink('order-slip', true)|escape:'html':'UTF-8'}" title="{l s='My credit slips' mod='blockmyaccount'}"> {l s='My credit slips' mod='blockmyaccount'}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{$link->getPageLink('addresses', true)|escape:'html':'UTF-8'}" title="{l s='My addresses' mod='blockmyaccount'}">
|
||||
{l s='My addresses' mod='blockmyaccount'}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{$link->getPageLink('identity', true)|escape:'html':'UTF-8'}" title="{l s='My personal info' mod='blockmyaccount'}">
|
||||
{l s='My personal info' mod='blockmyaccount'}
|
||||
|
||||
@@ -35,15 +35,12 @@
|
||||
<div class="row addresses-lists">
|
||||
<div class="col-xs-12 col-sm-6 col-lg-4">
|
||||
<ul class="myaccount-link-list">
|
||||
{* {if $has_customer_an_address} *}
|
||||
<li><a href="{$link->getPageLink('address', true)|escape:'html':'UTF-8'}" title="{l s='My address'}"><i class="icon-building"></i><span>{l s='My address'}</span></a></li>
|
||||
{* {/if} *}
|
||||
<li><a href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}" title="{l s='Orders'}"><i class="icon-list-ol"></i><span>{l s='Order history and details'}</span></a></li>
|
||||
{if $refundAllowed}
|
||||
<li><a href="{$link->getPageLink('order-follow', true)|escape:'html':'UTF-8'}" title="{l s='Booking Refund Requests'}"><i class="icon-refresh"></i><span>{l s='Booking Refund Requests'}</span></a></li>
|
||||
{/if}
|
||||
<li><a href="{$link->getPageLink('order-slip', true)|escape:'html':'UTF-8'}" title="{l s='Credit slips'}"><i class="icon-file-o"></i><span>{l s='My credit slips'}</span></a></li>
|
||||
{* <li><a href="{$link->getPageLink('addresses', true)|escape:'html':'UTF-8'}" title="{l s='Addresses'}"><i class="icon-building"></i><span>{l s='My addresses'}</span></a></li> *}
|
||||
<li><a href="{$link->getPageLink('identity', true)|escape:'html':'UTF-8'}" title="{l s='Information'}"><i class="icon-user"></i><span>{l s='My personal information'}</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user