Nero Posted December 9, 2009 Share Posted December 9, 2009 Hi, I need to deactivate sending Out of stock e-mails. I'm trying various combination of the PS settings in:Back Office >> Orders >> Statuses >>> Out of stockWhen I uncheck "Send e-mail to customer when order is changed to this status" the client not received any e-mail notification. When is checked, client receive two e-mails - Out of stock and Order confirmation. How to deactivate stop sending only Out of stock emails?Code hack is welcome Thanks Link to comment Share on other sites More sharing options...
rocky Posted December 10, 2009 Share Posted December 10, 2009 That's odd. I would have thought going to Orders > Statuses, editing "Out of Stock" and unchecking "Send e-mail to customer when order is changed to this status" would have stopped sending out of stock emails to the customers. Of course, "Out of Stock" emails would still be sent to the shop owner. You have to go to Modules > Mail Alerts and uncheck "Receive a notification if a product is out of stock" to stop the shop owner getting out of stock emails. Which email are you trying to stop being sent: mails/en/outofstock.html or modules/mailalerts/mails/en/productoutofstock.html? Link to comment Share on other sites More sharing options...
Nero Posted December 10, 2009 Author Share Posted December 10, 2009 Thanks for reply. Something went wrong with my PS SVN installation. I'll be tested on 1.2.5. Link to comment Share on other sites More sharing options...
Nero Posted December 10, 2009 Author Share Posted December 10, 2009 rocky, I tested this feature on fresh installation PS 1.2.5 right now. As I said before. If the “Send e-mail to customer when order is changed to this status” option is checked, customer receive two emails. If is the option is unchecked, the customer can't receive any email. Are you sure if the option is unchecked, your customer receive only one email - Order Confirmation? Link to comment Share on other sites More sharing options...
rocky Posted December 13, 2009 Share Posted December 13, 2009 I just tested this on my v1.2.5 installation and I can confirm the problem. I found a way to modify Prestashop so that it still sends the order confirmation email, even when you've unchecked the out of stock email box. Change line 350 of classes/PaymentModule.php to: if (/*$orderStatus->send_email AND */Validate::isEmail($customer->email)) Hopefully, this doesn't have any other unintended consequences. You'll have to test to see that all the other emails still work. Link to comment Share on other sites More sharing options...
Nero Posted December 13, 2009 Author Share Posted December 13, 2009 Thank you rocky. It's working well and it doesn't affected other PS e-mail functionality.I created related Bug Tracker entry. 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