Jump to content

No logout button


Recommended Posts

Hi,

 

I think you need to put some code like below:

{if $is_logged}
	<li>
		<a class="logout" href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Log me out' mod='blockuserinfo'}">{l s='Sign out' mod='blockuserinfo'}</a>
	</li>
{/if}
Edited by Chris Mok (see edit history)

Share this post


Link to post
Share on other sites

the file is now:

<!-- Block permanent links module HEADER -->
<ul id="header_links">
	<li id="header_link_contact"><a href="{$link->getPageLink('contact', true)|escape:'html'}" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a></li>
	<li id="header_link_sitemap"><a href="{$link->getPageLink('sitemap')|escape:'html'}" title="{l s='sitemap' mod='blockpermanentlinks'}">{l s='sitemap' mod='blockpermanentlinks'}</a></li>
	<li id="header_link_bookmark">
		<script type="text/javascript">writeBookmarkLink('{$come_from}', '{$meta_title|addslashes|addslashes}', '{l s='bookmark' mod='blockpermanentlinks' js=1}');</script>
	</li>
</ul>
<!-- /Block permanent links module HEADER -->

which is not consistent with my page links:

those are: my account | cart | login

 

 

 

Ok I've found the file, it's nav.tpl under /themes/mytheme/modules/blockcontact/ the code of the file is:

<div class="header_links_wrap">
	<ul id="header_links">
		{$context = Context::getContext()}
		<li><a class="link-myaccount" href="{$link->getPageLink('my-account', true)|escape:'html'}" title="{l s='My account' mod='blockcontact'}">{l s='My account' mod='blockcontact'}</a></li>
				
		<li><a class="link-mycart" href="{$link->getPageLink('order', true)|escape:'html'}" title="{l s='My cart' mod='blockcontact'}">{l s='My cart' mod='blockcontact'}</a></li>
		{if $logged}
				<!--<a href="{$link->getPageLink('my-account', true)|escape:'html'}" title="{l s='View my customer account' mod='blockuserinfo'}" class="account" rel="nofollow"><span>{$cookie->customer_firstname} {$cookie->customer_lastname}</span></a>-->
				<li class="last"><a class="link-out" href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" title="{l s='Log out' mod='blockcontact'}"  rel="nofollow">{l s='Log out' mod='blockcontact'}</a></li>
			{else}
				<li class="last"><a class="link-login" href="{$link->getPageLink('my-account', true)|escape:'html'}" title="{l s='Login' mod='blockcontact'}"  rel="nofollow">{l s='Login' mod='blockcontact'}</a></li>
		{/if}
		
	</ul>
</div>	
Edited by letrof (see edit history)

Share this post


Link to post
Share on other sites

Could be a problem of your theme. If the module does not works correct (blockuserinfo) you should deinstall it and install it again. This will make that it hooks to his right position and show all again. I don't suggest you to make changes to the code. The native module works without any problem.

 

Your theme is using an own module for login (blockuserinfo) ? From what I see it must be the native module, but please check if you will find on your module list two modules (userinfo)

Edited by selectshop.at (see edit history)

Share this post


Link to post
Share on other sites

  • 2 weeks later...

OK, so it is only a translation problem. You can change "my account" to what you want. Normally if your are logged the link changes to "log-out"

 

No it is not a translation problem, because when I click on "my account" it doesn't log out but instead redirects to my account.

so the problem is in the code of the module.

Please help me with this.

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More