archproject Posted October 15, 2013 Share Posted October 15, 2013 Hi there, anybody can tell me how to email myself (shop owner) when ever someone register at my shop. I am using 1.5.6 Regards Archproject Link to comment Share on other sites More sharing options...
vekia Posted October 15, 2013 Share Posted October 15, 2013 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 More sharing options...
archproject Posted October 15, 2013 Author Share Posted October 15, 2013 Thank you for your reply but I do not know how to add another mail function (programming) to the above code. Can you show me how ? Link to comment Share on other sites More sharing options...
vekia Posted October 15, 2013 Share Posted October 15, 2013 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')), '[email protected]', $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 More sharing options...
Coloranti Posted October 29, 2013 Share Posted October 29, 2013 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 More sharing options...
vekia Posted October 29, 2013 Share Posted October 29, 2013 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 More sharing options...
Coloranti Posted October 29, 2013 Share Posted October 29, 2013 Hi Vekia, If you will make it work for custom themes in PS 1.5.5... it's in this topic http://www.prestashop.com/forums/topic/207427-email-admin-for-new-customer-registration/ I guess this is what archproject was asking for... Link to comment Share on other sites More sharing options...
Coloranti Posted October 29, 2013 Share Posted October 29, 2013 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. Link to comment Share on other sites More sharing options...
Coloranti Posted October 30, 2013 Share Posted October 30, 2013 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 More sharing options...
tejasvini Posted June 17, 2014 Share Posted June 17, 2014 Hi Vekia, Thanks for the solution it is working fine. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now