Add breadcrumbs on my acount pages

This commit is contained in:
Abhishek Kumar
2023-08-09 13:20:38 +05:30
parent ccace94c38
commit c5c346e2c3
7 changed files with 23 additions and 2 deletions

View File

@@ -221,6 +221,8 @@ class AddressControllerCore extends FrontController
*/
public function initContent()
{
$this->show_breadcrump = true;
parent::initContent();
$this->assignCountries();

View File

@@ -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);

View File

@@ -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) {

View File

@@ -126,6 +126,8 @@ class IdentityControllerCore extends FrontController
*/
public function initContent()
{
$this->show_breadcrump = true;
parent::initContent();
if ($this->customer->birthday) {

View File

@@ -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);

View File

@@ -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));

View File

@@ -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}
<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 address'}
</span>
{/capture}
{if isset($smarty.get.updated) && $smarty.get.updated}
<p class="alert alert-success">
{l s='Your address has been successfully updated.'}