From c5c346e2c3c5d048d892f1f4bb973bb70d176ed9 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 9 Aug 2023 13:20:38 +0530 Subject: [PATCH] Add breadcrumbs on my acount pages --- controllers/front/AddressController.php | 2 ++ controllers/front/DiscountController.php | 2 ++ controllers/front/HistoryController.php | 2 ++ controllers/front/IdentityController.php | 2 ++ controllers/front/OrderFollowController.php | 3 ++- controllers/front/OrderSlipController.php | 2 ++ themes/hotel-reservation-theme/address.tpl | 12 +++++++++++- 7 files changed, 23 insertions(+), 2 deletions(-) diff --git a/controllers/front/AddressController.php b/controllers/front/AddressController.php index 3fd2107ee..29a2ba952 100644 --- a/controllers/front/AddressController.php +++ b/controllers/front/AddressController.php @@ -221,6 +221,8 @@ class AddressControllerCore extends FrontController */ public function initContent() { + $this->show_breadcrump = true; + parent::initContent(); $this->assignCountries(); diff --git a/controllers/front/DiscountController.php b/controllers/front/DiscountController.php index f6853470f..89f93a3cb 100644 --- a/controllers/front/DiscountController.php +++ b/controllers/front/DiscountController.php @@ -37,6 +37,8 @@ class DiscountControllerCore extends FrontController */ public function initContent() { + $this->show_breadcrump = true; + parent::initContent(); $cart_rules = CartRule::getCustomerCartRules($this->context->language->id, $this->context->customer->id, true, false, true); diff --git a/controllers/front/HistoryController.php b/controllers/front/HistoryController.php index 397325c41..e3a8210e4 100644 --- a/controllers/front/HistoryController.php +++ b/controllers/front/HistoryController.php @@ -53,6 +53,8 @@ class HistoryControllerCore extends FrontController */ public function initContent() { + $this->show_breadcrump = true; + parent::initContent(); if ($orders = Order::getCustomerOrders($this->context->customer->id)) { foreach ($orders as &$order) { diff --git a/controllers/front/IdentityController.php b/controllers/front/IdentityController.php index ea8c2af16..5da8ccbd9 100644 --- a/controllers/front/IdentityController.php +++ b/controllers/front/IdentityController.php @@ -126,6 +126,8 @@ class IdentityControllerCore extends FrontController */ public function initContent() { + $this->show_breadcrump = true; + parent::initContent(); if ($this->customer->birthday) { diff --git a/controllers/front/OrderFollowController.php b/controllers/front/OrderFollowController.php index 9247f7749..7bb79d54d 100644 --- a/controllers/front/OrderFollowController.php +++ b/controllers/front/OrderFollowController.php @@ -37,8 +37,9 @@ class OrderFollowControllerCore extends FrontController */ public function initContent() { - parent::initContent(); $this->show_breadcrump = true; + + parent::initContent(); if (isset($this->context->customer->id) && $this->context->customer->id) { $ordersReturns = OrderReturn::getOrdersReturn($this->context->customer->id, Tools::getValue('id_order')); $this->context->smarty->assign('ordersReturns', $ordersReturns); diff --git a/controllers/front/OrderSlipController.php b/controllers/front/OrderSlipController.php index 2b33b6cad..32e283fbe 100644 --- a/controllers/front/OrderSlipController.php +++ b/controllers/front/OrderSlipController.php @@ -48,6 +48,8 @@ class OrderSlipControllerCore extends FrontController */ public function initContent() { + $this->show_breadcrump = true; + parent::initContent(); $this->context->smarty->assign('ordersSlip', OrderSlip::getOrdersSlip((int)$this->context->cookie->id_customer)); diff --git a/themes/hotel-reservation-theme/address.tpl b/themes/hotel-reservation-theme/address.tpl index 3e3e9da78..a4725fb11 100644 --- a/themes/hotel-reservation-theme/address.tpl +++ b/themes/hotel-reservation-theme/address.tpl @@ -22,7 +22,17 @@ * @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 address'}{/capture} +{capture name=path} + + {l s='My account'} + + + {$navigationPipe} + + + {l s='My address'} + +{/capture} {if isset($smarty.get.updated) && $smarty.get.updated}

{l s='Your address has been successfully updated.'}