Do you often have a registered customers but you didnt notice them? Perhaps its because default prestashop didnt support this feature.
In order to enable this feature, you must do a little tweak to your prestashop files. Heres how to do the tweak.
1. Backup authentication.php file
2. Open the authentication.php file, and go to line 95, at the start of the else clause and email is sent to the customer with their details.
Change the following code:
if (!Mail::Send(intval($cookie->id_lang), 'account', 'Welcome!',
array('{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname,
'{email}' => $customer->email, '{passwd}' => Tools::getValue('passwd')),
$customer->email, $customer->firstname.' '.$customer->lastname))
$errors[] = Tools::displayError('cannot send email');
Into this :
if (!Mail::Send(intval($cookie->id_lang), 'account', 'Welcome!',
array('{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname,
'{email}' => $customer->email, '{passwd}' => Tools::getValue('passwd')),
$customer->email, $customer->firstname.' '.$customer->lastname))
$errors[] = Tools::displayError('cannot send email');
if (!Mail::Send(intval($cookie->id_lang), 'account', 'New Customer',
array('{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname,
'{email}' => $customer->email, '{passwd}' => '********'), 'first@email.com', 'First Name'))
$errors[] = Tools::displayError('cannot send email');
if (!Mail::Send(intval($cookie->id_lang), 'account', 'New Customer',
array('{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname,
'{email}' => $customer->email, '{passwd}' => '********'), 'second@email.com', 'Second Name'))
$errors[] = Tools::displayError('cannot send email');
This code will send the new account email to the customer and again to first@email.com and second@email.com, but without the password.
Related posts:
I have changed this in 1.3.1 – but still not getting any merchant mail when new customer??
Have English and Danish language installed – none works….
No errors otherwise, and customer still gets the welcome message….
I am NOT good with php – but is there not something missing – parameter for merchant/ shop owner mail?
Works Perfectly fine!
This trick works on Prestashop 1.4.X?
I don’t find the archive autentification.php with this code (is bery short)
Thanks
have not try this for prestashop 1.4.x
Downloaded a module that do this feature.
Thanks