henryluiz Posted March 2, 2017 Share Posted March 2, 2017 I have setup a sales account under administrators tab and restricted permissions. This account receives notification when orders are placed...no problem How do I stop the admin email account that was setup on the install of CC v6 from receiving the orders. once again....appreciate your help Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 2, 2017 Share Posted March 2, 2017 (edited) The store's main email address will be included, as will each admin where their profile is enabled to being notified of such order statuses. There would need to be a code edit to remove the main email address. For CC615, using a programmer's text editor, in /classes/order.class.php: Near line 1039, find: private function _notifyAdmins() { Six lines down, find: ## Add master email, while avoiding duplications $list = array_merge($list, array($GLOBALS['config']->get('config', 'email_address'))); Change to: ## Add master email, while avoiding duplications return $list; // $list = array_merge($list, array($GLOBALS['config']->get('config', 'email_address'))); This stops the merging in of the main email address into the list of admin's email addresses. Three lines later, if there are no admin profiles enabled to being notified, then the main email address will still be used. Edited March 2, 2017 by bsmither Quote Link to comment Share on other sites More sharing options...
henryluiz Posted March 4, 2017 Author Share Posted March 4, 2017 Hi bsmither thanks for this ....perfect it work 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.