Jump to content
thirty bees forum
  • 0

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


Question

9 answers to this question

Recommended Posts

  • 0
Posted

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
Posted

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
Posted

@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
Posted

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

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...