b_otho Posted December 27, 2017 Posted December 27, 2017 Is it possible? To disable the confirmation e-mail that is send when creating an order in back office.
0 b_otho Posted December 28, 2017 Author Posted December 28, 2017 Upon further investigation I can see that the content of the e-mail is determined by the status of the order. I thought the confirmation e-mail was sent as automatic standard. I can't understand why you cannot disable the e-mail, though. Shouldn't that be possible in the status? 99% of my orders are made by me in back-end, so it's quite important to me.
0 SLiCK_303 Posted December 28, 2017 Posted December 28, 2017 you could always delete the associated email in mails/en(or whatever language you're using). That may create in error, I'm not sure, but may work for ya. edit: there has to be a better solution than that. As your customers when they do create an order, wont get those emails.
0 zimmer-media Posted December 28, 2017 Posted December 28, 2017 @b_otho have you tried to change the status
0 b_otho Posted December 28, 2017 Author Posted December 28, 2017 @zimmer-media I'm not quite sure what you mean? To use a different status? Or to make my own status? I've tried both, it doesn't seem to make a difference.
0 SLiCK_303 Posted December 28, 2017 Posted December 28, 2017 goto BO>Orders>Statuses and unclick the, Send email to customer, for the ones you want to not send
0 SLiCK_303 Posted December 28, 2017 Posted December 28, 2017 I don't think it can be done, without some override of the core files or something. Sending out the order_conf mail is a built in sorta thing....
0 b_otho Posted December 28, 2017 Author Posted December 28, 2017 Solved! @SLiCK_303 you're right, though it needs to be done through an override of PaymentModule.php. Delete/uncomment the following, and you are able to control if a mail is sent or not through the status: if (Validate::isEmail($this->context->customer->email)) { Mail::Send( (int) $order->idlang, 'orderconf', Mail::l('Order confirmation', (int) $order->idlang), $data, $this->context->customer->email, $this->context->customer->firstname.' '.$this->context->customer->lastname, null, null, $fileAttachment, null, _PSMAILDIR, false, (int) $order->id_shop ); }
Question
b_otho
Is it possible? To disable the confirmation e-mail that is send when creating an order in back office.
9 answers to this question
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