Housy Posted September 30, 2009 Share Posted September 30, 2009 Hey,i would like to know, how can you check in header.tpl or any other tpl file, if user is logged in?Thank you,Housy Link to comment Share on other sites More sharing options...
ningu Posted September 30, 2009 Share Posted September 30, 2009 By the following smarty call :{if $logged}.....{/if} 2 Link to comment Share on other sites More sharing options...
Housy Posted October 8, 2009 Author Share Posted October 8, 2009 Tnx ;-) Link to comment Share on other sites More sharing options...
svetaines1 Posted October 22, 2010 Share Posted October 22, 2010 By the following smarty call :{if $logged}.....{/if} Your code is correct, but only if you use it is *.tpl file. However, if you would like to check user status in *.php files, you should use: if ($cookie->isLogged()) { ............ } else { ................. } I hope for someone it will be useful 3 Link to comment Share on other sites More sharing options...
Housy Posted October 22, 2010 Author Share Posted October 22, 2010 Tnx svetaines1 :-) Link to comment Share on other sites More sharing options...
maki Posted August 28, 2012 Share Posted August 28, 2012 Is there a way to check the logged in status from outside the prestashop? e.g. reading from a real cookie or ist there an API? I have a Drupal CMS next to the Shop running, where I d'like to show the login-status.. Link to comment Share on other sites More sharing options...
Recommended Posts