karlb00 Posted April 22, 2014 Share Posted April 22, 2014 Hi All, Im running 1.5 and I'm having a nightmare adding a link for Loyalty Points to the 'My Account' in the footer. I've translated 'Loyalty Points' to the words 'Pet Points' to fit with the website and can get the 'Pet Points' link to show in the My Account list of links. Unfortunately no matter what I do the link just doesn't work and returns with 'Page Not Found' I added the the highlighted line to the blockmyaccountfooter.tpl <!-- Block myaccount module --> <section class="block myaccount"> <button id="myAccountNavButton" class="hidden nav-button">{l s='My account' mod='blockmyaccountfooter'}</button> <h4 class="hideMobile"><a href="{$link->getPageLink('my-account.php', true)}">{l s='My account' mod='blockmyaccountfooter'}</a></h4> <div class="block_content"> <ul id="myAccountNav" class="mobiFooterNav"> <li><a href="{$link->getPageLink('history', true)}" title="{l s='List of my orders' mod='blockmyaccountfooter'}" rel="nofollow">{l s='My orders' mod='blockmyaccountfooter'}</a></li> {if $returnAllowed}<li><a href="{$link->getPageLink('order-follow', true)}" title="{l s='List of my merchandise returns' mod='blockmyaccountfooter'}" rel="nofollow">{l s='My merchandise returns' mod='blockmyaccountfooter'}</a></li>{/if} <li><a href="{$link->getPageLink('order-slip', true)}" title="{l s='List of my credit slips' mod='blockmyaccountfooter'}" rel="nofollow">{l s='My credit slips' mod='blockmyaccountfooter'}</a></li> <li><a href="{$link->getPageLink('addresses', true)}" title="{l s='List of my addresses' mod='blockmyaccountfooter'}" rel="nofollow">{l s='My addresses' mod='blockmyaccountfooter'}</a></li> <li><a href="{$link->getPageLink('identity', true)}" title="{l s='Manage my personal information' mod='blockmyaccountfooter'}" rel="nofollow">{l s='My personal info' mod='blockmyaccountfooter'}</a></li> {if $voucherAllowed}<li><a href="{$link->getPageLink('discount', true)}" title="{l s='List of my vouchers' mod='blockmyaccountfooter'}" rel="nofollow">{l s='My vouchers' mod='blockmyaccountfooter'}</a></li>{/if} <li><a href="{$link->getPageLink('module/loyalty', true)}" title="{l s='My pet points' mod='blockmyaccountfooter'}" rel="nofollow">{l s='My pet points' mod='blockmyaccountfooter'}</a></li> {$HOOK_BLOCK_MY_ACCOUNT} </ul> <p class="logout"><a href="{$link->getPageLink('index')}?mylogout" title="{l s='Sign out' mod='blockmyaccountfooter'}" rel="nofollow">{l s='Sign out' mod='blockmyaccount'}</a></p> </div> </section> <!-- /Block myaccount module --> My Coding skills are not the best so I'm hoping that it's something silly and that someone will show me what i've done wrong. Thanks for your help. Karl. Link to comment Share on other sites More sharing options...
vekia Posted April 22, 2014 Share Posted April 22, 2014 instead of {$link->getPageLink('module/loyalty', true)} use {$link->getModuleLink('loyalty', 'default', ['process' => 'summary'])|escape:'html'} 1 Link to comment Share on other sites More sharing options...
karlb00 Posted April 22, 2014 Author Share Posted April 22, 2014 You sir are a God! Thanks very much, it worked perfectly. I hoped it was something that was wrong within my code. Really appreciate the help. Thanks again. Karl. Link to comment Share on other sites More sharing options...
vekia Posted April 22, 2014 Share Posted April 22, 2014 you're welcome glad to hear that i could help you a little i can go ahead and mark topic title as solved. with regards, Milos 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