Jump to content

[Resolved] Can Order Emails be Copied to Admin?


airplane-dude
 Share

Recommended Posts

You can get an email of this template. It will be addressed to you, not as a CC of the email sent to the customer.

In /classes/order/class.php, near line 477:

Find:
/* no need to send this email for digital only orders */
if (!$this->_skip_order_complete_email && $this->_email_enabled && ($content = $mailer->loadContent('cart.order_complete', $order_summary['lang'])) !== false) {
  $this->assignOrderDetails();
  $mailer->sendEmail($this->_order_summary['email'], $content);
  unset($content);
}

Edit the fourth line to be:
  $mailer->sendEmail($this->_order_summary['email'].",".$this->_notifyAdmins(), $content);

This adds the store's email address the list of addresses this email will be sent to.

Link to comment
Share on other sites

Well, that is what you asked for.

A similar technique can be applied to the Order::Pending and Order::Processing cases as well.

But, CubeCart will send an Admin: Order Notification email to the admin(s) that looks almost identical to the email sent to the customer -- unless you changed them.

Link to comment
Share on other sites

  • 1 month later...

You can get an email of this template. It will be addressed to you, not as a CC of the email sent to the customer.

In /classes/order/class.php, near line 477:

Find:
/* no need to send this email for digital only orders */
if (!$this->_skip_order_complete_email && $this->_email_enabled && ($content = $mailer->loadContent('cart.order_complete', $order_summary['lang'])) !== false) {
  $this->assignOrderDetails();
  $mailer->sendEmail($this->_order_summary['email'], $content);
  unset($content);
}

Edit the fourth line to be:
  $mailer->sendEmail($this->_order_summary['email'].",".$this->_notifyAdmins(), $content);

This adds the store's email address the list of addresses this email will be sent to.

Can this be added to cc 6.0.6? so i can receive the complete email that is sent to client and also to admin too?

Looks like in cc6 there are no /order/class.php

 

Thanks

 

Link to comment
Share on other sites

Yes, That worked just fine! Got email to client and admin too...for "complete order"

The only thing i notice , in both emails received, to client and admin, for example the email that come for client it is show both emails that the

system sent the complete order too. Like: To: [email protected] , [email protected] , Is there a way to hide the admin email when it goes to client? on the order complete? 

Thank you.

Link to comment
Share on other sites

You can try duplicating the line:

$mailer->sendEmail($this->_order_summary['email'], $content);
$mailer->sendEmail($this->_notifyAdmins(), $content);

Otherwise, we would add a $mailer->addBCC() call. I think there is a couple conversations on the forums about that. Try a search for addBCC.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...