jordiob Posted January 27, 2011 Share Posted January 27, 2011 Hi there! is there any way in mail alerts 2.2. to send a copy of the new_order.html to the admin (this is working now on my site) and to the customer that placed the order as well?Thanks a lot for your help! Link to comment Share on other sites More sharing options...
inveostore.com Posted January 27, 2011 Share Posted January 27, 2011 Order confirmation is send to customer by default. If you are using PS 1.3.6.0, re-download installation package and re-upload all files in class directory (early builds of 1.3.6.0 package contained an error with email notifications). Link to comment Share on other sites More sharing options...
jordiob Posted January 28, 2011 Author Share Posted January 28, 2011 Thanks for the reply inveo.I tried something tht should work, but it's not.on /modules/mailalerts/mailalerts.php, I modified line 198 from if (file_exists(dirname(__FILE__).'/mails/'.$iso.'/'.$template.'.txt') AND file_exists(dirname(__FILE__).'/mails/'.$iso.'/'.$template.'.html')) { Mail::Send($id_lang, $template, $subject, $templateVars, explode(self::__MA_MAIL_DELIMITOR__, $this->_merchant_mails), NULL, $configuration['PS_SHOP_EMAIL'], $configuration['PS_SHOP_NAME'], NULL, NULL, dirname(__FILE__).'/mails/'); to if (file_exists(dirname(__FILE__).'/mails/'.$iso.'/'.$template.'.txt') AND file_exists(dirname(__FILE__).'/mails/'.$iso.'/'.$template.'.html')) { Mail::Send($id_lang, $template, $subject, $templateVars, explode(self::__MA_MAIL_DELIMITOR__, $this->_merchant_mails), NULL, $configuration['PS_SHOP_EMAIL'], $configuration['PS_SHOP_NAME'], NULL, NULL, dirname(__FILE__).'/mails/'); Mail::Send($id_lang, $template, $subject, $templateVars, explode(self::__MA_MAIL_DELIMITOR__, $this->_merchant_mails), NULL, $customer->email, $configuration['PS_SHOP_NAME'], NULL, NULL, dirname(__FILE__).'/mails/'); } First mail to admin PS_SHOP_EMAIL is working, but the second one $customer->email it's not.Any clues?Thanks!!! : Link to comment Share on other sites More sharing options...
jordiob Posted February 1, 2011 Author Share Posted February 1, 2011 Hi! does anyone know how to do this?Thanks! 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