Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Notify Admin by email of new registrations Rate Topic   - - - - -

 
  • TommyUK
  • Advanced Member
  • Members
  • Join Date: 24-Jan 12
  • 67 posts

Posted 15 August 2012 - 03:51 PM #1

Version 2.2.5

I needed to set up a system for Admins to get a copy of customer notifications when new customer registered and eventually figured it out, due to a combination of several posts from the forum.

If anyone else comes across this, here is what I did ...

In core/fn.users.php find this ...


// Notify customer about profile add/update
if ($action == 'add') {
fn_send_mail($user_data['email'], Registry::get('settings.Company.company_users_department'), 'profiles/create_profile_subj.tpl', 'profiles/create_profile.tpl', '', $lang_code);

and below it add this ..


// Notify administrator about profile add/update

fn_send_mail(Registry::get('settings.Company.company_users_department'), Registry::get('settings.Company.company_users_department'), 'profiles/create_profile_subj.tpl', 'profiles/create_profile.tpl', '', $lang_code);

This sends a copy of the Customers Registration email to the email address(es) listed under Settings: Company -> User department e-mail address

Hope this helps someone :)

[Backup first and no responsibility if it goes wrong etc etc]

Tom

 
  • dexter4000
  • Member
  • Members
  • Join Date: 19-Feb 12
  • 31 posts

Posted 15 August 2012 - 04:27 PM #2

this exists in version 3.0.2
CS-Cart 3.0.2 Professional
CS-Cart 3.0.3 Professional

 
  • mifzal
  • Senior Member
  • Trial users
  • Join Date: 20-Oct 11
  • 190 posts

Posted 15 August 2012 - 07:40 PM #3

Thank you Tom. I'll try that in 3.0.2

this exists in version 3.0.2


What do you exactly mean by this?