Jump to content

how display link login/logout in hookFooter


Recommended Posts

Hi,

 

how can i display the login/logout in the hook footer?,

 

i already tried to make a override but i get the error:

 

Fatal error: Cannot redeclare class BlockUserInfo in C:\xampp\htdocs\test\www\111\override\modules\blockuserinfo\blockuserinfo.php on line 57

 

anyone got an idea?

 

Thanks.

Link to comment
Share on other sites

{if $is_logged}
<div class="header_user_info">
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}" title="{l s='View my customer account' mod='blockuserinfo'}" class="account" rel="nofollow"><span>{$cookie->customer_firstname} {$cookie->customer_lastname}</span></a>
</div>
{/if}
<div class="header_user_info">
{if $is_logged}
<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>
{else}
<a class="login" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Log in to your customer account' mod='blockuserinfo'}">
{l s='Sign in' mod='blockuserinfo'}
</a>
{/if}
</div>

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...