I have activated the option "Approve New Customers" (Don't allow new customer to login until their account has been approved), but it would be nice for the store owner to receive an email so that they know when they must login to activate a new account.
Otherwise, the store owner must waste time logging in and checking the Customers tab to see if there have been new registrations.
Thanks!
Reason: Topic moved
2. FIND:
Code: Select all
$mail->send();
Code: Select all
//Q: Send additional email to store owner.
$mail->setTo($this->config->get('config_email'));
$mail->send();
Thank You, Just tested with 1.4.8b and works perfectQphoria wrote:1. EDIT: catalog/controller/account/create.php
2. FIND:3. AFTER, ADD:Code: Select all
$mail->send();
Code: Select all
//Q: Send additional email to store owner. $mail->setTo($this->config->get('config_email')); $mail->send();
10% Discount on all Shared and Reseller Hosting Packages at Vidahost.com
Discount Code: DISCOUNT10
10% Discount on all Shared and Reseller Hosting Packages at Vidahost.com
Discount Code: DISCOUNT10
I agree.Joxe wrote:Works alright but it's a pity not to get some costumer information like the name, at least. Instead we get the exact same email that the costumer get. But, hey...better than nothing
There should be a different layout on the e-mail the store-owner gets:
Hello, a new customer just registered at *store-name*.
Below you find all the details.
Client ID: 1574
Name: Norman in 't Veldt
E-Mail: me@store-name.nl
Newsletter: Yes
Telefoon: 0123456
Fax: 01234567
Address: Street 1
Area: Suburb-1
Postcode: 1234 AB
City: MyTown
State: Noord-Holland
Country: Netherlands
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
yeah! Something like that would be great !i2Paq wrote:
Hello, a new customer just registered at *store-name*.
Below you find all the details.
Client ID: 1574
Name: Norman in 't Veldt
E-Mail: me@store-name.nl
Newsletter: Yes
Telefoon: 0123456
Fax: 01234567
Address: Street 1
Area: Suburb-1
Postcode: 1234 AB
City: MyTown
State: Noord-Holland
Country: Netherlands
v. 1.4.9.6 & v. 2.0.2.0
To get the name of the new customer, add the following (substituted for step #3 above):Qphoria wrote:1. EDIT: catalog/controller/account/create.php
2. FIND:3. AFTER, ADD:Code: Select all
$mail->send();
Code: Select all
//Q: Send additional email to store owner. $mail->setTo($this->config->get('config_email')); $mail->send();
Code: Select all
//Q: Send additional email to store owner.
$new_subject = 'New Customer Registration: ' . $this->request->post['firstname'] . ' ' . $this->request->post['lastname'];
$mail->setSubject($new_subject);
$mail->setTo($this->config->get('config_email'));
$mail->send();
I've tested it and it works. Good nuff for me...
If you wanted to create a whole new email for the admin, it looks like you could create a new PHP email template in /catalog/language/english/mail/ (say account_create_admin.php), load it, and send a completely different email.
You'd just use this to start and continue from there:
Code: Select all
this->language->load('mail/account_create_admin);
After:
Code: Select all
$mail->send();
Code: Select all
//Q: Send additional email to store owner.
$this->load->model('localisation/country');
$this->load->model('localisation/zone');
$country = $this->model_localisation_country->getCountry($this->request->post['country_id']);
$zone = $this->model_localisation_zone->getZone($this->request->post['zone_id']);
$subject = 'New Customer Registration: ' . $this->request->post['firstname'] . ' ' . $this->request->post['lastname'];
$message = 'A new customer just registered at ' . $this->config->get('config_name') . '.' . "\n\n";
$message .= 'First Name: ' . $this->request->post['firstname'] . "\n";
$message .= 'Last Name: ' . $this->request->post['lastname'] . "\n";
$message .= 'E-Mail: ' . $this->request->post['email'] . "\n";
$message .= 'Phone: ' . $this->request->post['telephone'] . "\n";
$message .= 'Fax: ' . $this->request->post['fax'] . "\n";
$message .= 'Company: ' . $this->request->post['company'] . "\n";
$message .= 'Address 1: ' . $this->request->post['address_1'] . "\n";
$message .= 'Address 2: ' . $this->request->post['address_2'] . "\n";
$message .= 'City: ' . $this->request->post['city'] . "\n";
$message .= 'Region/State: ' . $zone['name'] . "\n";
$message .= 'Post Code: ' . $this->request->post['postcode'] . "\n";
$message .= 'Country: ' . $country['name'] . "\n";
$message .= ($this->request->post['newsletter']) ? 'Newsletter: Yes' : 'Newsletter: No';
$mail->setSubject($subject);
$mail->setText(html_entity_decode($message, ENT_QUOTES, 'UTF-8'));
$mail->setTo($this->config->get('config_email'));
$mail->send();
OpenCart Extensions, Technical Support & Custom Development | Have I helped you?
It would be even better if it was multilingual
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
I was tried to used "d7a7z7e7d" method, but it only works twice. And after all, I can't get any notification/alert on my email again. It's very odd, because I never change the script anymore, and when I check on the server, it still the same.
Anybody have the same problem with me? or any suggestion? please help me..
Thank you
Users browsing this forum: No registered users and 48 guests