Jump to content

Send order confirmation to admin


Recommended Posts

I would like to send the order confirmation email to two admin email addresses. We receive the new order email, but this doesn't show the product details correctly due to a module we have for a "cut to size service", but the order confirmation email does.

We've edited the paymentmodule.php file and added one email address and that works perfectly, but we can't seem to figure out how to get it to send to a second. Any help much appreciated!

if (Validate::isEmail($this->context->customer->email)) {
                            Mail::Send(
                                (int) $order->id_lang,
                                'order_conf',
                                Context::getContext()->getTranslator()->trans(
                                    'Order confirmation',
                                    array(),
                                    'Emails.Subject',
                                    $orderLanguage->locale
                                ),
                                $data,
                                $this->context->customer->email,
                                $this->context->customer->firstname . ' ' . $this->context->customer->lastname,
                                null,
                                null,
                                $file_attachement,
                                null, _PS_MAIL_DIR_, false, (int) $order->id_shop,
                                'd****@r******.co.uk'
     );
 }

Link to comment
Share on other sites

  • 1 year later...

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