dooban Posted March 19, 2019 Share Posted March 19, 2019 Anyone knows what is the code needed to put prestashop in maintenance mode ? The idea is doint it programatically when launching a PHP scrip for products import, and putting it back online after the process have finished. Link to comment Share on other sites More sharing options...
JBW Posted March 20, 2019 Share Posted March 20, 2019 (edited) Haven't tested it, but could be that setting the configuration is enough: Configuration::updateValue('PS_SHOP_ENABLE', false); Edited March 20, 2019 by JBW wrong method (see edit history) Link to comment Share on other sites More sharing options...
dooban Posted March 20, 2019 Author Share Posted March 20, 2019 YES, that was it. Thanks. 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