tdr170 Posted November 16, 2012 Share Posted November 16, 2012 (edited) Hello: I have a question concerning how to link to my alerts, In 1.4 I changed the my-account.tpl file removing the {$HOOK_CUSTOMER_ACCOUNT} and creating my own icons and in the case of my alerts my own link. <li><a href="modules/mailalerts/myalerts.php" title="{l s='My Alerts'}"><img src="{$img_dir}account/alerts.jpg" alt="" class="icon" /></a> In 1.4 this worked great and created no issues as the link created by the {$hook} was the same. However in 1.5 the {$hook} creates a link to modules/mailalerts/account and the link I created for 1.4 does not work it actually breaks the page and nothing appears for my alerts and the right column and footer disappear. If I replace the {$hook} my alerts page works properly Does anyone know how to properly create a link to my alerts for 1.5 just can't seem to figure this out. Note; this is an updated 1.4.9 test site and I did look in the mailalerts folder and myalerts.php did exist but I see that in a 1.5 stand alone install the files inside the mailalerts folder are different and no myalerts.php file exist. Edited November 16, 2012 by tdr170 (see edit history) Link to comment Share on other sites More sharing options...
tdr170 Posted November 16, 2012 Author Share Posted November 16, 2012 Well once again I figured it out on my own the link does need to change for 1.5. Any way anyone wanting to change their My Accounts page here is the proper link for My Alerts. you can find the proper links in modules/mailalerts/views/templates/hook/my-account.tpl and is basicaly the same for the other icons that {#HOOK_CUSTOMER_ACCOUNT} creates. <a href="{$link->getModuleLink('mailalerts', 'account')}" title="{l s='My alerts' mod='mailalerts'}">whateverhere</a> modules/favoriteproducts/views/templates/hook/my-account.tpl <a href="{$link->getModuleLink('favoriteproducts', 'account')|escape:'htmlall':'UTF-8'}" title="{l s='My favorite products' mod='favoriteproducts'}">whateverhere</a> 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