From 479a88f4e2bad3957d9f42934621bef5726f56cc Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Mon, 5 Dec 2022 17:11:14 +0530 Subject: [PATCH] updated address page --- controllers/front/AddressesController.php | 2 ++ modules/blockmyaccount/blockmyaccount.tpl | 1 - themes/hotel-reservation-theme/address.tpl | 8 ++++---- .../modules/blockmyaccount/blockmyaccount.tpl | 5 ----- themes/hotel-reservation-theme/my-account.tpl | 3 --- 5 files changed, 6 insertions(+), 13 deletions(-) diff --git a/controllers/front/AddressesController.php b/controllers/front/AddressesController.php index 27e81f944..aa5365316 100644 --- a/controllers/front/AddressesController.php +++ b/controllers/front/AddressesController.php @@ -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.')); } diff --git a/modules/blockmyaccount/blockmyaccount.tpl b/modules/blockmyaccount/blockmyaccount.tpl index 6980f7fdc..0282a0d05 100644 --- a/modules/blockmyaccount/blockmyaccount.tpl +++ b/modules/blockmyaccount/blockmyaccount.tpl @@ -31,7 +31,6 @@
  • {l s='My orders' mod='blockmyaccount'}
  • {if $returnAllowed}
  • {l s='My merchandise returns' mod='blockmyaccount'}
  • {/if}
  • {l s='My credit slips' mod='blockmyaccount'}
  • -
  • {l s='My addresses' mod='blockmyaccount'}
  • {l s='My personal info' mod='blockmyaccount'}
  • {if $voucherAllowed}
  • {l s='My vouchers' mod='blockmyaccount'}
  • {/if} {$HOOK_BLOCK_MY_ACCOUNT} diff --git a/themes/hotel-reservation-theme/address.tpl b/themes/hotel-reservation-theme/address.tpl index defcd8b52..44b8f74e0 100644 --- a/themes/hotel-reservation-theme/address.tpl +++ b/themes/hotel-reservation-theme/address.tpl @@ -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}
    -

    {l s='Your addresses'}

    +

    {l s='Your address'}

    {if isset($id_address) && (isset($smarty.post.alias) || isset($address->alias))} {l s='Modify address'} @@ -199,8 +199,8 @@

    diff --git a/themes/hotel-reservation-theme/modules/blockmyaccount/blockmyaccount.tpl b/themes/hotel-reservation-theme/modules/blockmyaccount/blockmyaccount.tpl index 34feb4486..cbb0dc8c1 100644 --- a/themes/hotel-reservation-theme/modules/blockmyaccount/blockmyaccount.tpl +++ b/themes/hotel-reservation-theme/modules/blockmyaccount/blockmyaccount.tpl @@ -48,11 +48,6 @@ {l s='My credit slips' mod='blockmyaccount'} -
  • - - {l s='My addresses' mod='blockmyaccount'} - -
  • {l s='My personal info' mod='blockmyaccount'} diff --git a/themes/hotel-reservation-theme/my-account.tpl b/themes/hotel-reservation-theme/my-account.tpl index 5cb2b5d43..66570d7aa 100644 --- a/themes/hotel-reservation-theme/my-account.tpl +++ b/themes/hotel-reservation-theme/my-account.tpl @@ -35,15 +35,12 @@