gusman126 Posted September 5, 2020 Share Posted September 5, 2020 (edited) Hi all I am adding orders through PHP code, included in the message. I need to prevent the order status emails from being sent as I don't want the end customer to receive anything. What I am doing is transferring orders between several stores and adding those orders to only 1 and therefore I don't need the emails to be sent. How can I avoid it? addpedido.php Edited September 5, 2020 by gusman126 (see edit history) Link to comment Share on other sites More sharing options...
Janett Posted September 5, 2020 Share Posted September 5, 2020 (edited) You can temporarily disable email by adding this line at the beginning : Configuration::set('PS_MAIL_METHOD', 3) See https://github.com/PrestaShop/PrestaShop/blob/12c29b500a9266630d40eef6b0d078c09752e3f7/classes/Configuration.php#L357 and https://github.com/PrestaShop/PrestaShop/blob/12c29b500a9266630d40eef6b0d078c09752e3f7/classes/Mail.php#L214 Edited September 5, 2020 by Janett (see edit history) 1 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