Page 1 of 1

Email to admin about new customer

Posted: Tue Feb 05, 2019 6:45 am
by ozstar
Hi,

Have 1.5.6.4.
Admin gets an email ( New Account Alert) when someone new signs up which has these fields...
Website
First Name
Last Name
Customer Group
Email;
Telephone

How can I ad suburb or city please?

Thanks

oz

Re: Email to admin about new customer

Posted: Tue Feb 05, 2019 7:34 am
by Cue4cheap
Try going into: catalog/model/account/customer.php
finding:
$message .= $this->language->get('text_email') . ' ' . $data['email'] . "\n";

and add this above it:
$message .= $this->language->get('text_city') . ' ' . $data['city'] . "\n";

You can move that line I have you adding to where you want it but above the email address looks logical to me....

Mike

Re: Email to admin about new customer

Posted: Tue Feb 05, 2019 1:27 pm
by soundzgood-nz
As cue4cheap has answered- the 'suburb' one depends on how you're using your address fields as OC doesn't have a specific 'suburb' field by default.
Maybe you use the address_2 field? If so you could also add:

Code: Select all

$message .= $this->language->get('text_email') . ' '  .  $data['address_2'] . "\n";
Simon