GRXinside Posted September 11, 2017 Share Posted September 11, 2017 Hola a tod@s, Me gustaría saber cómo puedo configurar mi prestashop para que cuando entren en la web requiera un inicio de sesión como en esta web, visitar web. ¿Qué tendría que hacer o modificar? Gracias Link to comment Share on other sites More sharing options...
rimander Posted September 11, 2017 Share Posted September 11, 2017 Hola. si sobrescribes el FrontController creo que puedes lograr lo que buscas. class FrontController extends FrontControllerCore { public function init() { parent::init(); if (!$this->context->customer->isLogged() && $this->php_self != 'authentication' && $this->php_self != 'password') { Tools::redirect('index.php?controller=authentication?back=my-account'); } } } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now