Page 1 of 1

New User admin notification

Posted: Tue Apr 11, 2017 2:33 am
by sbsjr13
What files control what data is sent to the admin when a new customer registers? I need to add the company field to the admin notification email that is sent to me.

Re: New User admin notification

Posted: Wed Apr 12, 2017 3:29 am
by oc-extensions
Hi,

In model/account/customer.php

after line

Code: Select all

// Send to main admin email if new account email is enabled
you can find area for email sent to admin;

There you can add new line:

Code: Select all

$message .= $this->language->get('text_company') . ' ' . $data['company'] . "\n";
Of course in language file ( mail/customer ) you need to also add

Code: Select all

$_['text_compnay'] = 'Company'; 
Have a nice day

Re: New User admin notification

Posted: Wed Apr 12, 2017 9:41 pm
by sbsjr13
Thank you!

Re: New User admin notification

Posted: Thu Apr 13, 2017 7:36 am
by andry9
Very Useful! ;D

Re: New User admin notification

Posted: Sat Oct 26, 2019 4:16 pm
by Johnny2017
Where would this be in OC 3.0.3.2?

Many Mahalos!!