airplane-dude Posted July 14, 2015 Share Posted July 14, 2015 I'd like to see if the 'order completed' emails can be cc (copied) to myself, as admin. Is there any way to do this? Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 14, 2015 Share Posted July 14, 2015 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. Quote Link to comment Share on other sites More sharing options...
airplane-dude Posted July 15, 2015 Author Share Posted July 15, 2015 Thanks for the help. I think this only seems to work on the 'order complete' email, not the processing or pending emails? Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 15, 2015 Share Posted July 15, 2015 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. Quote Link to comment Share on other sites More sharing options...
bosanci28 Posted August 16, 2015 Share Posted August 16, 2015 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 Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 16, 2015 Share Posted August 16, 2015 My bad spelling:In /classes/order.class.php, near line 477: Quote Link to comment Share on other sites More sharing options...
bosanci28 Posted August 16, 2015 Share Posted August 16, 2015 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 thesystem 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. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 16, 2015 Share Posted August 16, 2015 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. Quote Link to comment Share on other sites More sharing options...
bosanci28 Posted August 17, 2015 Share Posted August 17, 2015 By adding those 2 lines , instead of the 1 line above ,it worked.Thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.