4thbasement Posted April 22, 2016 Share Posted April 22, 2016 Hi Prestashop forum, Is there a way to disable email notifications when toggling maintenance mode on/off, in Back Office? Thank you, Tom Link to comment Share on other sites More sharing options...
shokinro Posted April 23, 2016 Share Posted April 23, 2016 you can use add a piece of code in following class or its override class and check if it is under maintenance mode, it is, then do not send email just return. /classes/Mail.php or (recommended) /override/classes/Mail.php public static function Send($id_lang, $template,....... { if(Configurartion::get('PS_SHOP_ENABLE') != 1)return true; ...... } Link to comment Share on other sites More sharing options...
4thbasement Posted April 23, 2016 Author Share Posted April 23, 2016 Hi Shokiro, thank you for the reply. The problem is, I don't have access to the files, which is why I was wondering if there is a way to disable the notifications in the back office, hoping I'm missing something. Link to comment Share on other sites More sharing options...
shokinro Posted April 23, 2016 Share Posted April 23, 2016 I am not aware of any way to do that via normal store configuration. And I think it is also makes sense because even you are in maintenance mode, for testing purpose you will still need emails. but you just want to avoid send email to real customers. it might be a good idea to have configuration to send all email to a specified email address. 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