Jump to content

Can anyone Help me, need to setup login First!


Recommended Posts

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

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 ways

1.)
by using php
   if (!$params['cookie']->isLogged()) 


in FrontController class

2.)
Using smarty + php

{if $cookie->isLogged()} 

{/if}



Good luck

Link to comment
Share on other sites

  • 3 years later...

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

×
×
  • Create New...