Housy Posted August 18, 2009 Share Posted August 18, 2009 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 More sharing options...
Housy Posted August 18, 2009 Author Share Posted August 18, 2009 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 Link to comment Share on other sites More sharing options...
Housy Posted October 3, 2009 Author Share Posted October 3, 2009 For now i know, that u can use the smarty call in any tpl file, like this: {if $logged} show user profile {else} login form {/if} Link to comment Share on other sites More sharing options...
Recommended Posts