jdmorrisn Posted October 24, 2010 Share Posted October 24, 2010 On the 'My Account' there is nowhere to log out. So if a customer is logged on and can't log out it means someone else using the computer will have access to their account - how can a log out option be added - or at least where is it? Link to comment Share on other sites More sharing options...
rocky Posted October 25, 2010 Share Posted October 25, 2010 PrestaShop already provides a "Log out" link at the top of the page (from the user info block) and a "Sign out" link in the left column (from the my account block). Don't you have either of these modules enabled? You can add another log out link to the my account page by adding the following code to my-account.tpl: <a href="{$base_dir}index.php?mylogout">{l s='Log out'} 1 Link to comment Share on other sites More sharing options...
jdmorrisn Posted October 25, 2010 Author Share Posted October 25, 2010 I don't have the user info block enabled, it looks poor and the way my page and header is set up it causes all sorts of problems. But My Account block is obviously enabled - but it didn't show any log out link. I use the block 'log in register' by marghoob suleman which is really good - but maybe it affects the My account, because like I said, the log out doesn't show.But now, once again, you have solved my problem - I added your text to the tpl file and now it is included. Thanks mate. Link to comment Share on other sites More sharing options...
jdmorrisn Posted October 25, 2010 Author Share Posted October 25, 2010 Almost solved - only one more problem is that I made the translation in the back office but it doesn't show in the front office.Is there a way to manually add translations via modifying files in ftp? In BO translations I have three Log Out fields for My Account, and the one I added came extra (it wasn't fille din). I translated and updated - but it doesn't work on the front page - any ideas? Link to comment Share on other sites More sharing options...
rocky Posted October 26, 2010 Share Posted October 26, 2010 If you added that code to a module instead of my-account.tpl, you will need to add the module's directory name to the translation. For example: <a href="{$base_dir}index.php?mylogout">{l s='Log out' mod='moduledir'} Change moduledir to the directory name of the third-party module you are using. Link to comment Share on other sites More sharing options...
jdmorrisn Posted October 26, 2010 Author Share Posted October 26, 2010 Magic once again. I added your text originally to the myaccount.tpl in (MyAccountBlock) - I didn't realise there was another my account tpl file anywhere eles. But super, all works and translates fine now! Link to comment Share on other sites More sharing options...
Vilas Posted October 21, 2011 Share Posted October 21, 2011 Hi, I am also using mehboob sulemans login and register block. After logging in that block disappears & I dont want to use user info block. So in which file I have to add logout script because there is no myaccount.tpl file in that module directory. So please suggest which one I have to modify. thanks Vilas Link to comment Share on other sites More sharing options...
David.C Posted June 19, 2019 Share Posted June 19, 2019 On 10/25/2010 at 8:33 AM, rocky said: PrestaShop already provides a "Log out" link at the top of the page (from the user info block) and a "Sign out" link in the left column (from the my account block). Don't you have either of these modules enabled? You can add another log out link to the my account page by adding the following code to my-account.tpl: <a href="{$base_dir}index.php?mylogout">{l s='Log out'} Hi I also have the same problem with Customer Log out (My Account). There are many my-account.tpl files so which/where to add the code into? Thanks 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