g.succu Posted February 19, 2016 Share Posted February 19, 2016 Hello everyone, I have the need of allow the access of my prestashop on maintenance mode to an user of which I don't know the IP address. Is there a way to allow the navigation of the site in maintenance mode after the backoffice login? Link to comment Share on other sites More sharing options...
g.succu Posted February 19, 2016 Author Share Posted February 19, 2016 For future references I've found the solution overriding the function displayMaintenancePage inside the FrontController.php file of the classes. Adding these two lines: $cookie = new Cookie('psAdmin'); $id_employee = $cookie->id_employee; and editing the if condition like this if ($id_employee <= 0 && ($this->maintenance == true || !(int)Configuration::get('PS_SHOP_ENABLE'))) { Not so clean but works fine to me. 1 Link to comment Share on other sites More sharing options...
El Patron Posted February 19, 2016 Share Posted February 19, 2016 Thanks for sharing, being a fan of joomla back in the day, it would be nice if maint. page allowed sign in via email address rather than IP. 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