Jump to content

[Resolved] Admin emails rec orders


henryluiz

Recommended Posts

 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

 

 

 

Link to comment
Share on other sites

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

×
×
  • Create New...