Chrisen Posted July 14, 2011 Share Posted July 14, 2011 I am trying to setup Prestashop to require a client to login before entering the site, can this be done? Is there a way to make the Login page the home page, and all other pages only display if a valid account is logged in?? Help Please........... Link to comment Share on other sites More sharing options...
MahmutGulerce Posted July 14, 2011 Share Posted July 14, 2011 I am trying to setup Prestashop to require a client to login before entering the site, can this be done? Is there a way to make the Login page the home page, and all other pages only display if a valid account is logged in?? Help Please........... Yes you can do it. there are two ways1.)by using php if (!$params['cookie']->isLogged()) in FrontController class2.) Using smarty + php {if $cookie->isLogged()} {/if} Good luck Link to comment Share on other sites More sharing options...
tomerg3 Posted July 14, 2011 Share Posted July 14, 2011 Check out this module http://www.prestashop.com/forums/viewthread/43991/ Link to comment Share on other sites More sharing options...
Chrisen Posted July 15, 2011 Author Share Posted July 15, 2011 Thank you for the help, I will give this a try... Link to comment Share on other sites More sharing options...
MijnLucas Posted April 14, 2015 Share Posted April 14, 2015 Yes you can do it. there are two ways 1.) by using php if (!$params['cookie']->isLogged())in FrontController class 2.) Using smarty + php {if $cookie->isLogged()} {/if} Good luck I might be bumbing a old or dead post, but could you explain me exactly what page to edit? In what map can I find it? Link to comment Share on other sites More sharing options...
Recommended Posts