- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 02.04.20, 17:54
- Opened by: sal caltavi
- Closed by: Fred
- Closed on: 08.04.20, 10:16
- Reason: Closed
- Comment: Glad to help!
Ticket #17202 - How can check if user is logged? Name on headerTop
Hi there,
I’m a junior (newbie) website developer and I’m currently working in a Prestashop project with Alysum theme.
I’d like the name of customer after he logged in at header-top (i.e. Sign in –> after logged in it change in Hello John )
I want to insert the following smarty call :
{if $logged}
…..
…..
{/if}
Please let me know how can I edit header.tpl or any other tpl file, if user is logged in?
In which folder do I find the file to be edited?
Thank you for your support.
Comments
Hi, sal caltavi.
use following condition:
Hi Fred,
Thank you for yr reply.
But I need to know the name of file to be edited. I found 10 or more files named header.tpl !
Thank you,
Sal
but I don’t know what element you want to edit.
open Developer tools of your browser and find a class or an ID of an element then open the theme in code editor and find that class in the code
Thank You Fred.