Jump to content
thirty bees forum
  • 0

Disable confirmation e-mail when creating an order in back office.



9 answers to this question

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

  • 0

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 ); }

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...