Jump to content

[SOLVED] My Account - how can a customer log out?


Recommended Posts

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'}

  • Like 1
Link to comment
Share on other sites

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

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

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

  • 11 months later...

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

  • 7 years later...
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...