Jump to content

[SOLVED] My Alerts Link ?


Recommended Posts

Hello:

 

I have a question concerning how to link to my alerts, In 1.4 I chnaged 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 by tdr170 (see edit history)
Link to comment
Share on other sites

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

  • 1 year later...

Hi,

 

Glad i found this link, the my account section in my front office has the wrong url to the mailalerts url., so istead of mysite/modules/mailalets/account it points to module without the s in singular and its without the https relative link instead and points to the absolute link. Any idea how to fix this? This is also responsible for my product out of stock notification email problem which does not display on the page, and i notice that there are two files in the hook folder, my-account.tpl and product.tpl

 

 

thanks.

Edited by indus (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...