nunoprud Posted August 13, 2014 Share Posted August 13, 2014 Hi everyone, I have the following issue: I need to add a new menu item to the "client account". I have 4 already, "order history, ..", but i tried to put a new line in the "blockmyaccount.tpl" file but nor result. Anybody can help me? Regards, Nuno Link to comment Share on other sites More sharing options...
PascalVG Posted August 15, 2014 Share Posted August 15, 2014 Where exactly do you encounter the problem? The code how to add it, or how to find the correct link or so? Please elaborate. pascal Link to comment Share on other sites More sharing options...
nunoprud Posted August 25, 2014 Author Share Posted August 25, 2014 Hi Pascal, The file that i´m tring to edit is the page showed when the client makes the login, in the frontpage. This is the code of the blockmyaccount.tpl file that i supose is correct file to edit. I added the line <li><a>LINK EXAMPLE</a></li> but i cannot see the link, * * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <!-- Block myaccount module --> <div class="block myaccount-column"> <p class="title_block"> <a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}" title="{l s='My account' mod='blockmyaccount'}"> {l s='My account' mod='blockmyaccount'} </a> </p> <div class="block_content list-block"> <ul> <li><a>LINK EXAMPLE</a></li> <li> <a href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}" title="{l s='My orders' mod='blockmyaccount'}"> {l s='My orders' mod='blockmyaccount'} </a> </li> {if $returnAllowed} <li> <a href="{$link->getPageLink('order-follow', true)|escape:'html':'UTF-8'}" 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':'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'} </a> </li> <li> <a href="www.sapo.pt" title="{l s='TESTE' mod='blockmyaccount'}"> {l s='My personal info' mod='blockmyaccount'} </a> </li> {if $voucherAllowed} <li> <a href="{$link->getPageLink('discount', true)|escape:'html':'UTF-8'}" title="{l s='My vouchers' mod='blockmyaccount'}"> {l s='My vouchers' mod='blockmyaccount'} </a> </li> {/if} {$HOOK_BLOCK_MY_ACCOUNT} </ul> <div class="logout"> <a class="btn btn-default button button-small" href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html':'UTF-8'}" title="{l s='Sign out' mod='blockmyaccount'}"> <span>{l s='Sign out' mod='blockmyaccount'}<i class="icon-chevron-right right"></i></span> </a> </div> </div> </div> <!-- /Block myaccount module --> Regards Nuno Link to comment Share on other sites More sharing options...
vekia Posted August 25, 2014 Share Posted August 25, 2014 you recompiled theme and cleared shop cache? if not - it's worth to, there is some possibility that you just see old cached version Link to comment Share on other sites More sharing options...
nunoprud Posted August 25, 2014 Author Share Posted August 25, 2014 Hi vekia, Yes I clear manually the cache (folder cache/smarty/compile), but the problem persists. Thanks Link to comment Share on other sites More sharing options...
nunoprud Posted August 27, 2014 Author Share Posted August 27, 2014 The my account footer module, i can edit and see the transformations. When i edit the blockmyaccount.tpl file, that includes the links: My account:My ordersMY credit slipsMy addressesMy personal infoMy vouchers Not result so far Link to comment Share on other sites More sharing options...
nunoprud Posted August 28, 2014 Author Share Posted August 28, 2014 I found the tpl file that i looking for Is located in the path: ../themes/default_bootstrap/my-account.tpl Topic solved 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