Jump to content

Static login?


Recommended Posts

Hey,

in my shop i would like to have a static login form, so it would be visible all the time, except when user is logged in. I'd like to have that in header, so i'll modify header.tpl file.

But I have a question here, how do i check, if user is logged with if statement, cause if he is logged i'd like to print out profile button and so on, otherwise user would see only login form.

I hope you understand what i want,

Tnx,
Housy

Link to comment
Share on other sites

I had in mind the type of login like here on prestashop.com. You see login form when you're logged out and when you log in, you see links like your account and so on.

So i have to check with the if statement somehow. if(logged) show your account else { show form}

How to do that ?

See the attachments.

Thank you

10690_PiSLSLxxIIPHJ4gf7vCM_t

10691_TXEjvdxfjnl4REcIBdSy_t

Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...