robertomagan Posted December 28, 2011 Share Posted December 28, 2011 Hi all: By default, prestashop doesn't send an email notification to shop admin when a customer begins a return proccess. How can I make or activate this option? The mail alerts module don't have it. Thanks in advance. Regards, Roberto Link to comment Share on other sites More sharing options...
robertomagan Posted January 15, 2012 Author Share Posted January 15, 2012 Anything about it? Thanks! Link to comment Share on other sites More sharing options...
Dafydd Posted January 21, 2012 Share Posted January 21, 2012 I don't really know what I'm doing, but after a lot of trial and error this seems to work (PS 1.4.6.2): In the file "controllers/OrderFollowController.php" you need to find the following line (69 in my version): Tools::redirect('order-follow.php'); Immediately BEFORE this line you need to insert the following code: $customer = new Customer((int)($order->id_customer)); $templateVars = array( '{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname, '{email}' => $customer->email, '{id_order}' => $id_order, '{message}' => $orderReturn->question); $id_lang = (is_object($cookie) AND isset($cookie->id_lang)) ? (int)$cookie->id_lang : (int)Configuration::get('PS_LANG_DEFAULT'); $iso = Language::getIsoById((int)$id_lang); Mail::Send((int)(Configuration::get('PS_LANG_DEFAULT')), 'order_customer_comment', Mail::l('Return Merchandise Authorization request'), $templateVars, Configuration::get('PS_SHOP_EMAIL'), NULL, NULL, NULL, NULL, NULL, _PS_MAIL_DIR_, true); Hope it works for you... Dafydd Link to comment Share on other sites More sharing options...
tayami Posted February 18, 2012 Share Posted February 18, 2012 Dafydd, Thanks for the work-around, but I think this is an important feature for core prestashop. I see that many people have requested this feature. Can anyone from Prestashop confirm if it is on the feature roadmap (or point me to a link to see the roadmap)? Cheers. Link to comment Share on other sites More sharing options...
tayami Posted February 18, 2012 Share Posted February 18, 2012 P.S. I can confirm that Dafydd's work-around works in PS 1.4.6.2. Thanks again! Link to comment Share on other sites More sharing options...
yves1986 Posted June 19, 2012 Share Posted June 19, 2012 Well done, also worked for me! Thanks so much! Link to comment Share on other sites More sharing options...
premanshu Posted July 14, 2012 Share Posted July 14, 2012 For PS 1.4.8.2 use: if (!Configuration::get('PS_MAIL_EMAIL_MESSAGE')) $to = strval(Configuration::get('PS_SHOP_EMAIL')); else { $to = new Contact((int)(Configuration::get('PS_MAIL_EMAIL_MESSAGE'))); $to = strval($to->email); } $customer = new Customer((int)(self::$cookie->id_customer)); if (Validate::isLoadedObject($customer)) Mail::Send((int)self::$cookie->id_lang, 'order_customer_comment', Mail::l('Return Merchandise Authorization request', (int)self::$cookie->id_lang), array( '{lastname}' => $customer->lastname, '{firstname}' => $customer->firstname, '{email}' => $customer->email, '{id_order}' => $orderReturn->id_order, '{message}' => $orderReturn->question), $to,strval(Configuration::get('PS_SHOP_NAME')), $customer->email, $customer->firstname.' '.$customer->lastname); Link to comment Share on other sites More sharing options...
[email protected] Posted November 6, 2012 Share Posted November 6, 2012 Anything About Presta 1.5 ?? thanks Kamlesh Link to comment Share on other sites More sharing options...
CameraTek Posted January 15, 2013 Share Posted January 15, 2013 Has anyone had the chance to do it for P.S 1.5.3.1?? Would be a god send :-) Andy Link to comment Share on other sites More sharing options...
AL-DEV Posted January 23, 2013 Share Posted January 23, 2013 The previous work around works on 1.5.2. The line where to put the code it's before: Tools::redirect('index.php?controller=order-follow'); Same file. Ale Link to comment Share on other sites More sharing options...
adrian200 Posted May 1, 2013 Share Posted May 1, 2013 Thank you! Very usefull indeed...works like a charm on prestashop 1.5.4 Link to comment Share on other sites More sharing options...
jesustoledo Posted May 13, 2013 Share Posted May 13, 2013 Hi, does this works on 1.4.9 by the way does anyone know how to send automated customer notifications using emails templates? Link to comment Share on other sites More sharing options...
jesustoledo Posted May 15, 2013 Share Posted May 15, 2013 Worked on 1.4.9 thanks very much! Link to comment Share on other sites More sharing options...
Rasmy79 Posted June 20, 2013 Share Posted June 20, 2013 Works perfectly in PS 1.5.4.1. Thanks!!! Link to comment Share on other sites More sharing options...
lucass Posted August 4, 2013 Share Posted August 4, 2013 Somehow it doesn't work for me on 1.5.4.1 This is my updated file part: $orderReturn->addReturnDetail($ids_order_detail, $order_qte_input, $customizationIds, $customizationQtyInput); Hook::exec('actionOrderReturn', array('orderReturn' => $orderReturn)); if (!Configuration::get('PS_MAIL_EMAIL_MESSAGE')) $to = strval(Configuration::get('PS_SHOP_EMAIL')); else { $to = new Contact((int)(Configuration::get('PS_MAIL_EMAIL_MESSAGE'))); $to = strval($to->email); } $customer = new Customer((int)(self::$cookie->id_customer)); if (Validate::isLoadedObject($customer)) Mail::Send((int)self::$cookie->id_lang, 'order_customer_comment', Mail::l('Return Merchandise Authorization request', (int)self::$cookie->id_lang), array( '{lastname}' => $customer->lastname, '{firstname}' => $customer->firstname, '{email}' => $customer->email, '{id_order}' => $orderReturn->id_order, '{message}' => $orderReturn->question), $to,strval(Configuration::get('PS_SHOP_NAME')), $customer->email, $customer->firstname.' '.$customer->lastname); Tools::redirect('index.php?controller=order-follow'); } } Is there anything else I should do in order to get this notification working? Thanks for help. Link to comment Share on other sites More sharing options...
lucass Posted August 5, 2013 Share Posted August 5, 2013 actually i'm not surprised it didn't work, when my store & contact email addresses were wrong ) Link to comment Share on other sites More sharing options...
Mr S Posted August 26, 2013 Share Posted August 26, 2013 (edited) GitHub: https://github.com/Ha99y/PrestaShop-modules-rmaNotify V1.0 rmanotify_v1.0.zip I am attaching a module that works with prestashop 1.5+ V1.1 rmanotify-v1.1.zip Now you select if customer should get a email for submitting RMA request V1.2 rmanotify-v1.2.zip - Now you can use 2 custom email templates (edit files in folder modules/rmanotify/mails/en/) - Option to enter custom email address Edited June 13, 2020 by HA!*!*Y (see edit history) 5 Link to comment Share on other sites More sharing options...
BoKr Posted August 29, 2013 Share Posted August 29, 2013 Hurray! Just going to test it live on 1541. Thumbs up and I hope for the best! Thank you very much for your public contribution! Boris Link to comment Share on other sites More sharing options...
misthero Posted October 17, 2013 Share Posted October 17, 2013 I have made some modification to HA!*!*Y module, since I needed for a client, i'm going to share it here. Changelog: 1. Module Option allow you to choose one of your contact services configured in backend instead of writing emai. 2. Email is sent to the contact choosen. 3. Messages appear in Customer Threads in BO attached to the existing thread for the order or a new one if it doesn't exist. thanks HA!*!*Y not me since it is his module. rmanotify.zip 6 Link to comment Share on other sites More sharing options...
Mr S Posted October 21, 2013 Share Posted October 21, 2013 I have made some modification to HA!*!*Y module, since I needed for a client, i'm going to share it here. Thanks for sharing your modification Can you do a New pull request on github (https://github.com/Ha99y/PrestaShop-modules-rmaNotify) or else can I update the code my self if not. Link to comment Share on other sites More sharing options...
misthero Posted October 21, 2013 Share Posted October 21, 2013 Thanks for sharing your modification Can you do a New pull request on github (https://github.com/Ha99y/PrestaShop-modules-rmaNotify) or else can I update the code my self if not. sure, pull request is here https://github.com/Ha99y/PrestaShop-modules-rmaNotify/pull/1/commits Link to comment Share on other sites More sharing options...
AngelSpeedy Posted October 22, 2013 Share Posted October 22, 2013 I have made some modification to HA!*!*Y module, since I needed for a client, i'm going to share it here. Changelog: 1. Module Option allow you to choose one of your contact services configured in backend instead of writing emai. 2. Email is sent to the contact choosen. 3. Messages appear in Customer Threads in BO attached to the existing thread for the order or a new one if it doesn't exist. thanks HA!*!*Y not me since it is his module. Hi friend, in my 1.4.9.0 not show the email service and i have all right, i already check that, any suggestion for this ? Tks.. Link to comment Share on other sites More sharing options...
misthero Posted November 19, 2013 Share Posted November 19, 2013 yes that version only works on 1.5+ since Customer Threads Controller is different in 1.4 Link to comment Share on other sites More sharing options...
Janek250 Posted August 15, 2014 Share Posted August 15, 2014 Hi, it is posible insert "RMA:" in front of text message? Thx, for help best regards Janek Link to comment Share on other sites More sharing options...
GrandeLupo Posted August 24, 2014 Share Posted August 24, 2014 About Prestashop 1.5.4.1? Link to comment Share on other sites More sharing options...
planetediscount Posted August 31, 2014 Share Posted August 31, 2014 hello, any help for presta 1.6.0.9 because this one make error on front controller when want to change SEO in SEO tab on Back Office Link to comment Share on other sites More sharing options...
St055 Posted September 26, 2014 Share Posted September 26, 2014 Egalement intérressé par cette fonctionnalité. Je ne comprends d'ailleurs pas pourquoi ce n'est pas une fonctionnalité d'origine. J'ai loupé 3 RMA à cause de ça... Link to comment Share on other sites More sharing options...
FERMB Posted September 29, 2014 Share Posted September 29, 2014 I have made some modification to HA!*!*Y module, since I needed for a client, i'm going to share it here. Changelog: 1. Module Option allow you to choose one of your contact services configured in backend instead of writing emai. 2. Email is sent to the contact choosen. 3. Messages appear in Customer Threads in BO attached to the existing thread for the order or a new one if it doesn't exist. thanks HA!*!*Y not me since it is his module. Thanks a lot!!. Perfect in ps1.5.6 Link to comment Share on other sites More sharing options...
arvind_ari Posted October 9, 2014 Share Posted October 9, 2014 I have made some modification to HA!*!*Y module, since I needed for a client, i'm going to share it here. Changelog: 1. Module Option allow you to choose one of your contact services configured in backend instead of writing emai. 2. Email is sent to the contact choosen. 3. Messages appear in Customer Threads in BO attached to the existing thread for the order or a new one if it doesn't exist. thanks HA!*!*Y not me since it is his module. Hello Misthero How we can add any separate email addresses which is not belong to customer service and webmaster, then how we can do that. I want to add email address as we able to add email ids in Mail alert module. Thanks. Link to comment Share on other sites More sharing options...
subaru4wd Posted November 28, 2014 Share Posted November 28, 2014 Can anybody confirm if this works for Prestashop 1.6? Link to comment Share on other sites More sharing options...
bansaluk Posted January 10, 2015 Share Posted January 10, 2015 Tested and working on PS 1.6.0.11. A big thanks to HA!*!*Y & misthero. 1 Link to comment Share on other sites More sharing options...
bazaralandalus Posted February 27, 2015 Share Posted February 27, 2015 I am attaching a module that works with prestashop 1.5+ github: https://github.com/Ha99y/PrestaShop-modules-rmaNotify Mil gracias! me funciona en 1.5.6.2 falta algun detalle, como que el mensaje que recibo no tiene el numero del pedido, pero es un paso muy importante recibir un correo. Muchas gracias por vuestro trabajo!! Link to comment Share on other sites More sharing options...
maollora Posted May 25, 2015 Share Posted May 25, 2015 Hello! Thank you very much for this module! This is very usefull! It works perfectly in PS 1.6.0.14 Regards, Marta Link to comment Share on other sites More sharing options...
pevoct Posted June 30, 2015 Share Posted June 30, 2015 (edited) Hello, thanks for the module! But I'm having problems with the upload... I install the module but the modules page is empty after the upload. I also can't find it in the modules list. Does anyone know why? Thanks I have the version 1.6.0.14 Edited June 30, 2015 by shopcommetoi (see edit history) Link to comment Share on other sites More sharing options...
misthero Posted June 30, 2015 Share Posted June 30, 2015 folder permissions? Link to comment Share on other sites More sharing options...
pevoct Posted June 30, 2015 Share Posted June 30, 2015 folder permissions? i have permission (i've always installed modules this way so this is the first time this happens) Link to comment Share on other sites More sharing options...
misthero Posted June 30, 2015 Share Posted June 30, 2015 di you tried uplading the module via ftp? unzip it and upload in the modules folder Link to comment Share on other sites More sharing options...
pevoct Posted July 1, 2015 Share Posted July 1, 2015 di you tried uplading the module via ftp? unzip it and upload in the modules folder yes I did it but nothing happens. there's no such module on my list how did you do it? Link to comment Share on other sites More sharing options...
Sam Minerve Posted September 10, 2015 Share Posted September 10, 2015 Hello, I have the same problem as Pevoct. I tried to upload the module via ftp and also directly in the BO but the module doesn't appear in the list of modules in BO. Though, the module does appear in the modules file in ftp. Strange... Link to comment Share on other sites More sharing options...
Sam Minerve Posted September 11, 2015 Share Posted September 11, 2015 Sorry, the problem is fixed now. I just reuploaded the module. Link to comment Share on other sites More sharing options...
ANGELO Vintage Posted February 15, 2017 Share Posted February 15, 2017 in PS 1.6.1.11 the module "MAIL ALERTS" have also a mail notification switch for: Receive a notification when a customer requests a merchandise return. Is not the same function of this plugin? Link to comment Share on other sites More sharing options...
jyotidesh Posted December 17, 2019 Share Posted December 17, 2019 On 5/1/2013 at 1:47 PM, adrian200 said: Thank you! Very usefull indeed...works like a charm on prestashop 1.5.4 Hi, Can we send email after two weeks after sending the merchandise return. My prestashop version 1.5.3.1 Link to comment Share on other sites More sharing options...
Ale_BB Posted May 26, 2020 Share Posted May 26, 2020 Hello everyone, sorry to revive such an old post, but I have a similar problem! I would like my customer to receive an email when he submits a new rma, but I haven't find a way to make it happen on PrestaShop 1.7. Does anyone know how yo do it (manually or with a module)? Thanks! Link to comment Share on other sites More sharing options...
philipp.haugg Posted May 26, 2020 Share Posted May 26, 2020 6 hours ago, Ale_BB said: Hello everyone, sorry to revive such an old post, but I have a similar problem! I would like my customer to receive an email when he submits a new rma, but I haven't find a way to make it happen on PrestaShop 1.7. Does anyone know how yo do it (manually or with a module)? Thanks! You can find the paid modules on the addon store. https://addons.prestashop.com/en/search?search_query=RMA Most of the modules on addon store offers the demo so you can check the module demo to find if these meets your requirement or not. Link to comment Share on other sites More sharing options...
Ale_BB Posted May 27, 2020 Share Posted May 27, 2020 Hello, 18 hours ago, philipp.haugg said: You can find the paid modules on the addon store. https://addons.prestashop.com/en/search?search_query=RMA Most of the modules on addon store offers the demo so you can check the module demo to find if these meets your requirement or not. Hello Philipp, I have already tried one of these module fo replace the stock rma procedure, but it didn't work well, so we came back to the original one. What I simply need to add is the notification email for the customer as he opens the rma, nothing more than that. I suppose I should put some code somewhere, but I'm not experienced enough to do that on my own. Link to comment Share on other sites More sharing options...
Martin Mi Posted May 29, 2020 Share Posted May 29, 2020 HI Alle_BB. I am trying to solve the same email notification problem for PS 1.7.6.4 but no luck so far. Any ideas how email notifications can be implemented for Order Returns? Link to comment Share on other sites More sharing options...
Martin Mi Posted May 29, 2020 Share Posted May 29, 2020 Hi everyone, The free PS Module is called Email Notifications and works FINE with PrestaShop 1.7.6.4. It has to be downloaded via Modules >> Module Catalog. The emails are send to Merchant for: new orders merchandise order returns low stock based on limit defined by merchant I hope this helps, Regards, Martin Mi DataQuo, s.r.o. www.dataquo.eu 1 Link to comment Share on other sites More sharing options...
Ale_BB Posted May 29, 2020 Share Posted May 29, 2020 23 minutes ago, Martin Mi said: Hi everyone, The free PS Module is called Email Notifications and works FINE with PrestaShop 1.7.6.4. It has to be downloaded via Modules >> Module Catalog. Hi Martin, isn't it the module that comes already installed with PrestaShop? Link to comment Share on other sites More sharing options...
Martin Mi Posted May 29, 2020 Share Posted May 29, 2020 Not installed by default in the installation. I believe you have to search for it in Modules >> Module Catalog and click install from search results. Link to comment Share on other sites More sharing options...
Mr S Posted June 1, 2020 Share Posted June 1, 2020 On 8/26/2013 at 4:49 PM, HA!*!*Y said: Now you select if customer should get a email for submitting RMA request rmanotify-v1.1.zip 5.85 kB · 0 downloads Tested on PrestaShop version:1.7.6.4 1 Link to comment Share on other sites More sharing options...
Ale_BB Posted June 11, 2020 Share Posted June 11, 2020 On 6/1/2020 at 5:45 AM, HA!*!*Y said: Tested on PrestaShop version:1.7.6.4 Hello Happy! I've downloaded your module and tested it on my PrestaShop 1.7.5.1 and it works perfectly, so I recommend it since it does what it says and, plus, it's free! I came across your GitHub repository before, while searching for the module: The only thing I would have liked even more is the ability to choose a different email template for this purpose, instead of the generic customer message one. This is only a suggestion, not a complain! It's a free module and, hey, you've done even more then you had to do Have a nice day! Link to comment Share on other sites More sharing options...
Mr S Posted June 13, 2020 Share Posted June 13, 2020 On 6/11/2020 at 2:50 AM, Ale_BB said: ...The only thing I would have liked even more is the ability to choose a different email template for this purpose, instead of the generic customer message one... i just updated it https://www.prestashop.com/forums/topic/148221-returns-rma-email-notification/?tab=comments#comment-1353097 1 Link to comment Share on other sites More sharing options...
Ale_BB Posted June 23, 2020 Share Posted June 23, 2020 Awesome, I was able to customize the email template within your module by creating a child theme version of them. Now it perfectly fits the style of the store! Great work! 🏆 Link to comment Share on other sites More sharing options...
Bigfoot4 Posted March 12, 2021 Share Posted March 12, 2021 Hi! HA!*!*Y, Can I change the language of the messages/ or ad new language? Can I also change order_name with Id_order, would it affect the proper functioning of the module? Link to comment Share on other sites More sharing options...
HaCos Posted July 5, 2021 Share Posted July 5, 2021 Does this module works with prestashop 1764? Link to comment Share on other sites More sharing options...
Gertjezzz Posted October 9, 2021 Share Posted October 9, 2021 Confirm that this works on Prestashop 1.7.7.7 I made a single email template so that is can distinguish the normal costumer email regarding questions and RMA emails. $customer = new Customer((int)($order->id_customer)); $templateVars = array( '{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname, '{email}' => $customer->email, '{id_order}' => $id_order, '{message}' => $orderReturn->question); $id_lang = (is_object($cookie) AND isset($cookie->id_lang)) ? (int)$cookie->id_lang : (int)Configuration::get('PS_LANG_DEFAULT'); $iso = Language::getIsoById((int)$id_lang); Mail::Send((int)(Configuration::get('PS_LANG_DEFAULT')), 'order_customer_return', Mail::l('Retourmelding van klant'), $templateVars, Configuration::get('PS_SHOP_EMAIL'), NULL, NULL, NULL, NULL, NULL, _PS_MAIL_DIR_, true); I added the code in "controllers/OrderFollowController.php" right before: Tools::redirect('index.php?controller=order-follow'); and replaced the email to: order_costumer_return - also i changed the subject to my own language -> Retourmelding van klant. See the atteached files for a custom email. Place both files in /mails/{YOURLANGUAGE} order_customer_return.txt order_customer_return.html 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