0

Mi problemática es la siguiente, un usuario (comprador) no deberia de poder hacer nada en la tienda sin antes tener una session iniciada, por lo tanto ¿como es posible que con prestashop haga que la primera vista (obligatoria) sea la de inicio de session?

1 respuesta 1

0

FrontController: (crear un override)

if ($this->auth && !$this->context->customer->isLogged($this->guestAllowed)) { Tools::redirect('index.php?controller=authentication'.($this->authRedirection ? '&back='.$this->authRedirection : '')); }

por

if (!$this->context->customer->isLogged() && $this->php_self != 'authentication' && $this->php_self != 'password'){ Tools::redirect('index.php?controller=authentication?back=my-account'); }

Tu Respuesta

By clicking “Publica tu respuesta”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

¿No es la respuesta que buscas? Examina otras preguntas con la etiqueta o formula tu propia pregunta.