Jump to content
Mistermeow

Changer le NAV selon client ou visiteur

Recommended Posts

Bonjour !

      J'aimerais pouvoir changer le nav du lien "my account" pour qu'il passe de "ouvrir un compte" à "mon compte" une fois connecter !

La manip fonctionne pour le lien "se connecter" "se déconnecter" mais je n'y arrive pas pour my account ..

Site en question : PORTEMETAL.COM

 

Dans > modules > blockuserinfo > nav ma modif sans succès:

 

{if $logged}

<div class="header_user_info">

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

</div>

{/if}

<div class="header_user_info">

	{if $logged}

		<a class="logout" href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" 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'}" rel="nofollow" title="{l s='Log in to your customer account' mod='blockuserinfo'}">{l s='Sign in' mod='blockuserinfo'}</a>

	{/if}

</div>

<!-- /Block user information module NAV -->

 

Edited by Clementcapo (see edit history)

Share this post


Link to post
Share on other sites

Peut-être le mettre au bon endroit^^

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

 

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

×
×
  • Create New...

Important Information

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