Register link in TOP menu Prestashop

nicola.dobbelaere
3 Posts
nicola.dobbelaere posted this 31 May 2015

Does anyone have an idea or solution how you can add a register link? Because now you can only see "Your account" (in dutch: uw account) and login in my TOP menu, see screenshot.
I know you can do it manually with text and link it to the register/login page. But that's no option, because I want only "register" appaer when you aren't logged in or if you don't have an account yet. Else I don't want to see the register link/button.

Besides that I have also the problem after login that you have two links near each other "your account" and "your name". How can I remove the "your name"? Because it's really stupid to have both near each other with the same page link.

Schermafdruk-2015-05-31-11.48.50.png

Does anyone have an idea or solution how you can add a register link? Because now you can only see "Your account" (in dutch: uw account) and login in my TOP menu, see screenshot. I know you can do it manually with text and link it to the register/login page. But that's no option, because I want only "register" appaer when you aren't logged in or if you don't have an account yet. Else I don't want to see the register link/button. Besides that I have also the problem after login that you have two links near each other "your account" and "your name". How can I remove the "your name"? Because it's really stupid to have both near each other with the same page link. !Schermafdruk-2015-05-31-11.48.50.png!
Vote to pay developers attention to this features or issue.
4 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 01 June 2015

Hello

Sorry for the delay.

I want only "register" appaer when you aren't logged in or if you don't have an account yet. Else I don't want to see the register link/button.

Unfortunately Themler does not have such built-in functionality.

To add additional link to the top menu you will need to edit theme files manually.

  • open public_html\themes[theme_name]\includes\topmenu_1.tpl file

  • there is {if $logged}loop in this file. If you want to add a link which should appear only if you're not logged in you should add it outside this loop after the {else} tag.

  • in the same file you can remove "your name":
    <li class=" bd-menuitem-1">
    <a href="{$link->getPageLink('my-account', true)}" title="{l s='View my customer account'}" account" rel="nofollow"><span>{$cookie->customer_firstname} {$cookie->customer_lastname}</span></a>
    </li>

Please note that saving theme in Themler may erase all custom changes. So I suggest that you either make changes to the final theme or do not make any changes to the Top menu control in the future.

Please keep us posted about the progress.

Thank you,
Olivia

Hello Sorry for the delay. > I want only "register" appaer when you aren't logged in or if you don't have an account yet. Else I don't want to see the register link/button. Unfortunately Themler does not have such built-in functionality. To add additional link to the top menu you will need to edit theme files manually. - open <tt>public_html\themes\[theme_name]\includes\topmenu_1.tpl</tt> file - there is `{if $logged}`loop in this file. If you want to add a link which should appear only if you're not logged in you should add it outside this loop after the `{else}` tag. - in the same file you can remove "your name": `<li class=" bd-menuitem-1"> <a href="{$link->getPageLink('my-account', true)}" title="{l s='View my customer account'}" account" rel="nofollow"><span>{$cookie->customer_firstname} {$cookie->customer_lastname}</span></a> </li>` Please note that saving theme in Themler may erase all custom changes. So I suggest that you either make changes to the final theme or do not make any changes to the Top menu control in the future. Please keep us posted about the progress. Thank you, Olivia
nicola.dobbelaere
3 Posts
nicola.dobbelaere posted this 24 June 2015

Hi Olivia,

I followed your steps. After that I logged into Themler, edited the theme and after that everything that I changed was still the same. So it works!

Thanks.

Hi Olivia, I followed your steps. After that I logged into Themler, edited the theme and after that everything that I changed was still the same. So it works! Thanks.
nicola.dobbelaere
3 Posts
nicola.dobbelaere posted this 08 July 2015

Hi Olivia,

I made the last update in Themler, and know it's again the same... I did the same thing like above, but it don't work now. Do I need to adjust something else now? I removed the customer_firstname code but it still appears.

Kind Regards,
Nicola

Hi Olivia, I made the last update in Themler, and know it's again the same... I did the same thing like above, but it don't work now. Do I need to adjust something else now? I removed the customer_firstname code but it still appears. Kind Regards, Nicola
Support Team
Support Team posted this 09 July 2015

Hi,

I have tried the modifications posted by Olivia before with the updated theme and it works fine for me. Please make sure that you have edited the proper theme. Also try to clear the browser and site cache.

Sincerely,
Hella
BillionDigital Team

Hi, I have tried the modifications posted by Olivia before with the updated theme and it works fine for me. Please make sure that you have edited the proper theme. Also try to clear the browser and site cache. Sincerely, Hella BillionDigital Team
You must log in or register to leave comments