letrof Posted June 3, 2015 Share Posted June 3, 2015 (edited) I have a problem with no logout buton on my page. No matter if you are logged in or not the button is always "Login" therefore customers can't log out. No idea where to search. Can anybody help me? my page is www.lawendowykredens.pl/pl Thanks. Edited June 3, 2015 by letrof (see edit history) Link to comment Share on other sites More sharing options...
Chris Mok Posted June 3, 2015 Share Posted June 3, 2015 (edited) 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 June 3, 2015 by Chris Mok (see edit history) Link to comment Share on other sites More sharing options...
letrof Posted June 3, 2015 Author Share Posted June 3, 2015 Hi, thanks for reply. Where should I put it? Link to comment Share on other sites More sharing options...
Chris Mok Posted June 3, 2015 Share Posted June 3, 2015 I guess this file modules/blockpermanentlinks/blockpermanentlinks-header.tpl Link to comment Share on other sites More sharing options...
letrof Posted June 3, 2015 Author Share Posted June 3, 2015 (edited) 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 June 3, 2015 by letrof (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted June 3, 2015 Share Posted June 3, 2015 (edited) 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 June 3, 2015 by selectshop.at (see edit history) Link to comment Share on other sites More sharing options...
letrof Posted June 3, 2015 Author Share Posted June 3, 2015 Yes, my theme use blockcontact for the 3 links. I've just found out that after logging in the "login" link changes to "my account". Link to comment Share on other sites More sharing options...
selectshop.at Posted June 3, 2015 Share Posted June 3, 2015 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" Link to comment Share on other sites More sharing options...
letrof Posted June 15, 2015 Author Share Posted June 15, 2015 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. Link to comment Share on other sites More sharing options...
selectshop.at Posted June 15, 2015 Share Posted June 15, 2015 No the problem is on your theme. You should contact the theme developer. 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