Post by sbsjr13 » Tue Apr 11, 2017 2:33 am

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.

New member

Posts

Joined
Wed Sep 16, 2015 8:02 pm

Post by oc-extensions » Wed Apr 12, 2017 3:29 am

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
Last edited by oc-extensions on Thu Apr 13, 2017 6:19 am, edited 1 time in total.

Image | Extensions and Custom Development


User avatar
Active Member

Posts

Joined
Fri Jan 06, 2012 11:31 pm

Post by sbsjr13 » Wed Apr 12, 2017 9:41 pm

Thank you!

New member

Posts

Joined
Wed Sep 16, 2015 8:02 pm

Post by andry9 » Thu Apr 13, 2017 7:36 am

Very Useful! ;D

I love smartwatch :D


Newbie

Posts

Joined
Thu Apr 13, 2017 6:54 am

Post by Johnny2017 » Sat Oct 26, 2019 4:16 pm

Where would this be in OC 3.0.3.2?

Many Mahalos!!

Newbie

Posts

Joined
Wed Aug 23, 2017 12:05 pm
Who is online

Users browsing this forum: Amazon [Bot], dparakhiya and 421 guests