zdzakic Posted August 6, 2017 Share Posted August 6, 2017 (edited) Hi chaps, what is the way to edit add/remove links from my account block? I could not find a way and i assume it will require code edit or so? Any thoughts pls? Edited August 6, 2017 by zdzakic (see edit history) Link to comment Share on other sites More sharing options...
Scully Posted August 6, 2017 Share Posted August 6, 2017 Look at my-account.tpl in your themes directory. Link to comment Share on other sites More sharing options...
Wn-nook Posted December 14, 2017 Share Posted December 14, 2017 Please tel me how to edit the links under "My Account" . I want to change the names and URLs of the categories under that section. Kindly help. Link to comment Share on other sites More sharing options...
Alegra Posted February 21, 2019 Share Posted February 21, 2019 To edit the position of the links in "My account" block (my Prestashop version is 1.7.5), open the modules/ps_customeraccountlinks/ps_customeraccountlinks.php Around line 100 you will find "my_account_urls = array". In this array is set position of links with numbers from 0-5. $my_account_urls = array( 2 => array( 'title' => $this->trans('Orders', array(), 'Admin.Global'), 'url' => $link->getPageLink('history', true), ), 3 => array( 'title' => $this->trans('Credit slips', array(), 'Modules.Customeraccountlinks.Admin'), 'url' => $link->getPageLink('order-slip', true), ), 1 => array( 'title' => $this->trans('Addresses', array(), 'Shop.Theme.Global'), 'url' => $link->getPageLink('addresses', true), ), 0 => array( 'title' => $this->trans('Personal info', array(), 'Modules.Customeraccountlinks.Admin'), 'url' => $link->getPageLink('identity', true), ), ); if ((int)Configuration::get('PS_ORDER_RETURN')) { $my_account_urls[4] = array( 'title' => $this->trans('Merchandise returns', array(), 'Modules.Customeraccountlinks.Admin'), 'url' => $link->getPageLink('order-follow', true), ); } if (CartRule::isFeatureActive()) { $my_account_urls[5] = array( 'title' => $this->trans('Vouchers', array(), 'Shop.Theme.Customeraccount'), 'url' => $link->getPageLink('discount', true), ); } 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now