sean1688 Posted March 26, 2015 Share Posted March 26, 2015 can someone tell me how to add a email template to automatically send an email to admin when an order is marked "canceled"? thanks in advance Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 26, 2015 Share Posted March 26, 2015 I found this: '?do=embed' frameborder='0' data-embedContent>> I will check on this and see if any additional info is needed for the latest versions of CubeCart. Quote Link to comment Share on other sites More sharing options...
sean1688 Posted March 27, 2015 Author Share Posted March 27, 2015 Thanks for your reply. however this does not work. the Cubecart is set up to send email to the admin when an order is paid. this is working fine for us. what we want to do is to also send an email to admin when an order is canceled. this will be adding an email template, but I don't know how to do that. Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 27, 2015 Share Posted March 27, 2015 In the file /classes/order.class.php, (CC602 line 471) find: Was: case self::ORDER_CANCELLED: // Cancelled $content = $mailer->loadContent('cart.order_cancelled', $order_summary['lang'], $this->_order_summary); break; } Now: case self::ORDER_CANCELLED: // Cancelled $content = $mailer->loadContent('cart.order_cancelled', $order_summary['lang'], $this->_order_summary); if(!empty($content)) {$admin_mailer = Mailer::getInstance(); $admin_mailer->sendEmail($this->_notifyAdmins(), $content);} break; } This is using the existing template Cart: Order Cancelled. Adding a new, custom email template just for the admin when an order is cancelled is a bit more involved. Quote Link to comment Share on other sites More sharing options...
sean1688 Posted March 27, 2015 Author Share Posted March 27, 2015 Thanks! this works very nicely! 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.