Jump to content

Email to shop owner when someone register


Recommended Posts

you can modify authentication controller (AuthController.php)

 

there is a function:
 

protected function sendConfirmationMail(Customer $customer)
	{
		if (!Configuration::get('PS_CUSTOMER_CREATION_EMAIL'))
			return true;

		return Mail::Send(
			$this->context->language->id,
			'account',
			Mail::l('Welcome!'),
			array(
				'{firstname}' => $customer->firstname,
				'{lastname}' => $customer->lastname,
				'{email}' => $customer->email,
				'{passwd}' => Tools::getValue('passwd')),
			$customer->email,
			$customer->firstname.' '.$customer->lastname
		);
	}

just add there additional mail function which will send an email also to you

Link to comment
Share on other sites

here is modified function:

protected function sendConfirmationMail(Customer $customer)
{
if (!Configuration::get('PS_CUSTOMER_CREATION_EMAIL'))
return true;
        
        Mail::Send(
$this->context->language->id,
'account',
Mail::l('Welcome!'),
array(
'{firstname}' => $customer->firstname,
'{lastname}' => $customer->lastname,
'{email}' => $customer->email,
'{passwd}' => Tools::getValue('passwd')),
$customer->firstname.' '.$customer->lastname
);
 
return Mail::Send(
$this->context->language->id,
'account',
Mail::l('Welcome!'),
array(
'{firstname}' => $customer->firstname,
'{lastname}' => $customer->lastname,
'{email}' => $customer->email,
'{passwd}' => Tools::getValue('passwd')),
$customer->email,
$customer->firstname.' '.$customer->lastname
);
}
 
instead of '[email protected]' use your email address
 
 
then you will receive the same email as your customer :)
Link to comment
Share on other sites

  • 2 weeks later...

This works very well.

Only downside is that you receive exactly the same email as your client does.

 

There is a module supposed to have the functionality archproject is asking for, called memberarert.

Unfortunately it does not send any mail to admin in PS 1.5.5 on a custom theme.

So, Vekia's solution is a good alternative.

 

Thanks!

Link to comment
Share on other sites

This works very well.

Only downside is that you receive exactly the same email as your client does.

 

There is a module supposed to have the functionality archproject is asking for, called memberarert.

Unfortunately it does not send any mail to admin in PS 1.5.5 on a custom theme.

So, Vekia's solution is a good alternative.

 

Thanks!

 

where i can find this addon? it's available somewhere on board?

Link to comment
Share on other sites

HI Vekia,

I have this problem described in this post:

http://www.prestashop.com/forums/topic/261177-no-carrier-has-been-made-available-for-this-selection/?hl=%2Bcarriers+%2Bavailable

 

It's really important and I know you are a true specialist...

Can you please help?

 

Thank you!

 

PM is not working, so I post here. Please delete if unacceptable.

 

It seems that I have solved the problem. See the solution on the link provided.

Thanks.

Link to comment
Share on other sites

  • 7 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...