AndriusS Posted November 5, 2013 Share Posted November 5, 2013 Hey! I'm browsing through the settings but I have not found the possibility to skip sending emails on various tasks. I would only like to leave them on when the person is registering, the order has been shipped etc. Is there any way other than searching for "Mail::Send(" and deleting the method calls one by one? Thanks! Link to comment Share on other sites More sharing options...
jgullstr Posted November 5, 2013 Share Posted November 5, 2013 Under Order > Statuses in BackOffice, you can set up which status changes should send e-mails. Link to comment Share on other sites More sharing options...
vekia Posted November 6, 2013 Share Posted November 6, 2013 Hey! I'm browsing through the settings but I have not found the possibility to skip sending emails on various tasks. I would only like to leave them on when the person is registering, the order has been shipped etc. Is there any way other than searching for "Mail::Send(" and deleting the method calls one by one? Thanks! about what emails you're talking? take a loon on mailalerts module configuration, there is also option for customer notifications Link to comment Share on other sites More sharing options...
AndriusS Posted November 6, 2013 Author Share Posted November 6, 2013 I would assume that the Mail class does all the mail sending. So I just filtered them through the template name. Like this: $allow_mail_templates = ["account", "shipped","order_conf","password","in_transit","_outofstock"]; if(!in_array($template,$allow_mail_templates)) return true; Link to comment Share on other sites More sharing options...
jgullstr Posted November 6, 2013 Share Posted November 6, 2013 I would assume that the Mail class does all the mail sending. So I just filtered them through the template name. Like this: $allow_mail_templates = ["account", "shipped","order_conf","password","in_transit","_outofstock"]; if(!in_array($template,$allow_mail_templates)) return true; Can you give an example of which e-mails you don't want sent, since I don't see any reason why you would have to do this? Link to comment Share on other sites More sharing options...
AndriusS Posted November 6, 2013 Author Share Posted November 6, 2013 Well, I just wanted to be sure about the mail sending so there's no other way than to go deep. But to be more precise... The "you got a voucher" one, I'm also not sure about the payment error notification. Also, I'm pretty sure there's an email sent to the customer when I add a new product to the order. 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