Birdieanimal Posted October 17, 2020 Share Posted October 17, 2020 Sending email to customer is deactivated. But the shop still sends out an order cornfirmation. See the two screen shots enclosed. How to stop that? Using 1.7.6.8. Thx for helping. Link to comment Share on other sites More sharing options...
Bill Dalton Posted October 17, 2020 Share Posted October 17, 2020 There is a setting for that to turn on or off, see Advanced Parameters > E-mail > Never send emails (may be useful for testing purposes) Link to comment Share on other sites More sharing options...
Guest Posted October 18, 2020 Share Posted October 18, 2020 Email order_conf sends PaymentModule.php in the .classes folder. You can create an override and remove the Mail :: send function. Link to comment Share on other sites More sharing options...
Birdieanimal Posted October 18, 2020 Author Share Posted October 18, 2020 Thanks for the responses. I do not want to stop all emails. I just want to stop the "preparation" email - see status 3 in the list. Why is it sending this email? Link to comment Share on other sites More sharing options...
Guest Posted October 18, 2020 Share Posted October 18, 2020 When the status is off and an email is sent, it means that a module is installed that sends the email. This means that an override in the Mail.php file must be created. Link to comment Share on other sites More sharing options...
Guest Posted October 18, 2020 Share Posted October 18, 2020 (edited) ./classes/Mail.php find: change to: Edited October 18, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Birdieanimal Posted October 18, 2020 Author Share Posted October 18, 2020 Thank you very much but it did NOT work. This is what is looks like now: if ($send && Configuration::get('PS_LOG_EMAILS') && $template !== 'preparation' ) { Then I cleared the cache by clicking here: Link to comment Share on other sites More sharing options...
Birdieanimal Posted October 18, 2020 Author Share Posted October 18, 2020 Please look at the screen enclosed. It shows the emails that are being send. "waiting_invoice" is cool. I need that. The "order_conf" I do not need. I modified the additional code to: if ($send && Configuration::get('PS_LOG_EMAILS') && $template !== 'order_conf' ) { Does not hep. E-Mail is still being send. Do I need to clear the cache in a different way then just pushing the button in the menu? Thx. Link to comment Share on other sites More sharing options...
Guest Posted October 18, 2020 Share Posted October 18, 2020 Link to comment Share on other sites More sharing options...
Guest Posted October 18, 2020 Share Posted October 18, 2020 ./classes/PaymentModule.php 1. add /* before Mail::Send 2. add */ after ); Link to comment Share on other sites More sharing options...
Birdieanimal Posted October 18, 2020 Author Share Posted October 18, 2020 YES. That does the job. Thank you very much. Take care. Link to comment Share on other sites More sharing options...
Guest Posted October 18, 2020 Share Posted October 18, 2020 You can like my posts by clicking on the gray heart below the posts. 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