sumsel Posted September 20, 2016 Share Posted September 20, 2016 (edited) Hi there I'm a prestashop newbie and currently try to get a shop going. Prestashop version 1.6.1.6, operating on apache server with PHP version 5.6.25, mailalerts version 3.6.0 One of the basic functions I really want to see is an email to me as the seller for each new order. Searched that and found and installed mailalerts. My test customers got emails, my seller account never got an email. Uninstalled and installed again, no change. I believe that my test customers also got emails before installing mailalerts, I assume that is a basic funcionality of this version of Prestashop and has nothing to do with mailalerts. So far I checked the following: - Mailalerts is activated - It is set to send email for new orders - The email address listed is capable of receiving emails - Hooks are present for: actionOrderEdited actionOrderReturn actionProductAttributeDelete actionProductAttributeUpdate actionProductDelete actionProductOutOfStock actionUpdateQuantity actionValidateOrder displayCustomerAccount displayMyAccountBlock Header I suspect that the hook "actionValidateOrder" would be the correct one but I am really new here. I have not found a hook called "New Order". The email address I use is not @mydomainname as I don't have a working email at this point for that test-domain where I currently have the shop loaded. Tried the email listed with the hosting provider and a gmail address, both times got nothing. Is that potentially still an issue with this version of mailalerts 3.6.0? I am using a blank new shop, not configured in any way, just added German language somewhere so it has English and German now although quite mixed. Do language versions create any trouble with mailalerts? Given that I haven't really done anything with this shop, I am ready to delete and reinstall if that could help identify and fix the issue. Thank you for any hints! Best Thomas Edited October 5, 2016 by sumsel (see edit history) Link to comment Share on other sites More sharing options...
Teenabiswas Posted September 20, 2016 Share Posted September 20, 2016 You can suggest PHP code for bulk SMS api php I am looking for a long time of period but I am not getting a right code. Link to comment Share on other sites More sharing options...
sumsel Posted September 20, 2016 Author Share Posted September 20, 2016 Mmh thanks for that... I really need emails, not SMS. Link to comment Share on other sites More sharing options...
bellini13 Posted September 21, 2016 Share Posted September 21, 2016 actionValidateOrder is the correct hook to use. If you go to advanced parameters > email page in the back office, you should see a log of all the emails leaving your store. The email from mailalerts uses the template "new_order". So the first thing I would do is confirm that the email attempt is being made and recorded. 1 Link to comment Share on other sites More sharing options...
sumsel Posted September 27, 2016 Author Share Posted September 27, 2016 (edited) Thank you bellini13. Checked that page and found that no attempt is being made. I found the list of all mails leaving the store, and there were indeed many emails. I identified all emails of order confirmations sent to the test customer, and interesting enough, I also found a lot of emails about product out of stock sent to the merchant email account. Those were also sent by the same mailalerts module, or at least I was able to configure them there. I also received those emails. However I found no email sending attempt about order confirmations sent out to the merchant email account. Just double checking the settings in mailalerts. Merchant notification for New order is activated. So to sum it up, there seems to be no technical problem about sending or receiving emails as such. The mail alerts module simply does not try to send the order notification. What else can I check or do? Thanks.... Edited September 27, 2016 by sumsel (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted September 29, 2016 Share Posted September 29, 2016 Perhaps try to reset the mailalerts module 1 Link to comment Share on other sites More sharing options...
Logical IT Posted September 29, 2016 Share Posted September 29, 2016 also try checking PrestaShop logs for any email errors. From back office go to -> advanced parameters -> logs -> sort by date. 1 Link to comment Share on other sites More sharing options...
sumsel Posted September 30, 2016 Author Share Posted September 30, 2016 @bellini, I did reinitalize the mailalerts module, placed a test order and still no email sent to seller. Nothing in the seller mail account, and no attempt in outgoing emails registered. @logical it, after that I checked the log, and today the only events registered are backoffice connection, product modification and some cart not loaded. Nothing related to emails. Any more hints? .... Link to comment Share on other sites More sharing options...
Logical IT Posted September 30, 2016 Share Posted September 30, 2016 (edited) you might be missing the mailalert email templates for your default back office language? Try this from back office go to -> Localization -> Translations -> email templates -> select your theme -> select your language -> Modify -> Do you see any error/warning messages top of the screen? Edited September 30, 2016 by Logical IT (see edit history) 1 Link to comment Share on other sites More sharing options...
sumsel Posted October 1, 2016 Author Share Posted October 1, 2016 Hi Logical IT, yes, indeed I do see warnings there! Interestingly it claims that while there is a folder "mails" for the language "en" there are none for my default language (en) ... which is the same but "" instead of () ... so potentially we got closer to the issue now! I will see how far I get playing with this. Will change the backoffice language back and forth a bit and see what happens. Right now my shop's default language is set to French and the warning message also popped up in french. Il y a 3 avertissements.Un dossier "mails" existe pour la langue "en", mais pas pour la langue par défaut (en) dans "/modules/blockwishlist/mails" Un dossier "mails" existe pour la langue "en", mais pas pour la langue par défaut (en) dans "/modules/followup/mails" Un dossier "mails" existe pour la langue "en", mais pas pour la langue par défaut (en) dans "/modules/referralprogram/mails" Switching that to english, the warnings still exist and look like this There are 3 warnings:A mail directory exists for the "en" language, but not for the default language (en) in /themes/default-bootstrap/modules/blockwishlist/mails A mail directory exists for the "en" language, but not for the default language (en) in /themes/default-bootstrap/modules/followup/mails A mail directory exists for the "en" language, but not for the default language (en) in /themes/default-bootstrap/modules/referralprogram/mails Now I don't quite know how to explain to prestashop that "en" is the same as (en). Link to comment Share on other sites More sharing options...
Logical IT Posted October 2, 2016 Share Posted October 2, 2016 Hello Sumsel, In regards to the mail template warning messages, there is no warning about the mailalerts module - so all good here in regards to mailalerts. Are you hosting with goDaddy by any chance? The reason I ask this is because I am the developer of a module called 'New order alert with invoice attached' module. The module works similar to PrestaShops default mailalert module but it also attaches the order invoice pdf to the email alert notification. I have had two customers in past where the server just would not send the email and after spending hours trying to troubleshoot the problem, it came down the email subject simply needed to be edited and changed. But it was only for customers that were hosting with goDaddy. For some reason the goDaddy server did not like the email subject format and stopped sending the email. Try this from back office -> localization -> translations -> select your theme -> emails templates -> modify -> mailalerts -> new_order -> change subject to simply "New order" -> save. 2 Link to comment Share on other sites More sharing options...
sumsel Posted October 5, 2016 Author Share Posted October 5, 2016 Success!! Thanks so much Logical IT! I am not hosting with GoDaddy. My webspace hoster is in Germany, called Bitpalast or Bitpalace. Yet your hint and detailed instructions (I needed those) solved the problem, I just received the first ever order confirmation message from my test prestashop system in my sellers email account. I changed the subject for both the english and french version to something simple and placed a test order. Got the confirmation message. It went to spam, but I still got and found it Great help, thanks a lot! Now only the issue of switching the languages at random needs solving and I might dare to develop this shop further. I just realize that I havent asked this language switching question in english yet. Just asked in German and French so far. Just typed it in English also, maybe that also gets me closer to solving the issue. https://www.prestashop.com/forums/topic/559627-shop-switches-to-default-language-on-every-click/ Again many thanks! Link to comment Share on other sites More sharing options...
Logical IT Posted October 5, 2016 Share Posted October 5, 2016 Hello Thomas, Awesome! Glad to hear it's working now. Link to comment Share on other sites More sharing options...
RaWMotorsports Posted October 21, 2016 Share Posted October 21, 2016 Hello,Thanks for your feedback.I have an issue looking like the same, but the difference is that the confirmation mail work properly when the order is placed by the customer on the front office, and do not work when the order is placed by the merchant on the back-office.All mail translation are OK, only the mail subject remain empty (I checked one of my other shop which work fine, and it is also empty, so maybe normal?) I still wrote New order : #%d - %s and we will see on next order. For information, same problem on the email log, the confirmation order for customer appear but for the merchant nothing when done trough Back-Office, the mail appear without any problem when done from the front office Link to comment Share on other sites More sharing options...
nik10 Posted October 21, 2016 Share Posted October 21, 2016 I have the same problem, are hours I try to figure out what the problem is but I can not figure out where I'm wrong can you give me a hand? as the subject of the email should I put "New Order" or "New order #% d -% s", with or without commas? thank you Link to comment Share on other sites More sharing options...
RaWMotorsports Posted October 21, 2016 Share Posted October 21, 2016 I personnally put New order #% d -% s on my shop.It work perfectly when the customer do an order by himself ! I recieved 4 orders this morning. BUT nothing when we do manually the order with the Back-Office Link to comment Share on other sites More sharing options...
Logical IT Posted October 21, 2016 Share Posted October 21, 2016 Hello nik10, try changing subject to simply: New order Link to comment Share on other sites More sharing options...
RaWMotorsports Posted October 21, 2016 Share Posted October 21, 2016 Hello Logical IT, Can we think that the subject is a problem when the mail work perfectly going trough the front office ? Because having the Order number on the mail subject is important for us. Link to comment Share on other sites More sharing options...
Logical IT Posted October 21, 2016 Share Posted October 21, 2016 Hello RawMotorSports, Ok, now I understand your problem but I have no more suggestions - maybe someone else from the forum can help? Maybe turn on prestashop debug mode and see if any errors are reported to the screen? Link to comment Share on other sites More sharing options...
RaWMotorsports Posted October 21, 2016 Share Posted October 21, 2016 Yeah, that's my idea, the problem is that the website is now in production, and the merchant isn't myself, so I don't do the order by myself.I'll try to ask my customer to do an order with me, and I'll let you know.Regards, Link to comment Share on other sites More sharing options...
RaWMotorsports Posted October 21, 2016 Share Posted October 21, 2016 In my case I solved it.If the Back Office user do not have the correct right for the mail Alert module, then the message doesn't work properly. Simply set "Show/Modify/Delete" on this module for the user that do the order.Regards, Link to comment Share on other sites More sharing options...
nik10 Posted October 21, 2016 Share Posted October 21, 2016 I did not understand how you managed to solve I can not fix it thank you Link to comment Share on other sites More sharing options...
Logical IT Posted October 21, 2016 Share Posted October 21, 2016 Hello RawMotorsports, Well done. I don't understand how you solved it. Can you please show us with some screenshots on how you solved it for your case? Thanks. Link to comment Share on other sites More sharing options...
RaWMotorsports Posted October 22, 2016 Share Posted October 22, 2016 If the permission isn't set correctly for the back-office user who does the order on Administration/permission, the module doesn't load i guess, and the mail do not work. regards, Link to comment Share on other sites More sharing options...
RaWMotorsports Posted October 22, 2016 Share Posted October 22, 2016 If the permission isn't set correctly for the back-office user who does the order on Administration/permission, the module doesn't load i guess, and the mail do not work. regards, Link to comment Share on other sites More sharing options...
nik10 Posted October 24, 2016 Share Posted October 24, 2016 where you can find these settings? you could tell me where you went exactly? thank you Link to comment Share on other sites More sharing options...
rocky Posted October 24, 2016 Share Posted October 24, 2016 It's the Administration > Permissions tab in the Back Office. Click on any employee profile (except SuperAdmin, which can't be changed) and then you'll see the module permissions on the right. Scroll down to "Mail alerts". Link to comment Share on other sites More sharing options...
nik10 Posted October 24, 2016 Share Posted October 24, 2016 I did as you said but nothing has changed I do not understand the reason why do not I get the mail confirming the order, there is a payment module that makes the same thing shortly alerts? thank you Link to comment Share on other sites More sharing options...
rocky Posted October 24, 2016 Share Posted October 24, 2016 The solution above is for fixing the Mail Alerts module not sending emails. The order confirmation email is not sent by the Mail Alerts module, so you must have another problem. The order confirmation email is sent in classes/PaymentModule.php, so I suggest investigating your payment modules and any overrides of that file. Link to comment Share on other sites More sharing options...
nik10 Posted October 25, 2016 Share Posted October 25, 2016 so I have to go and check in files Payment Module.php if there is something wrong? What could it be? thank you Link to comment Share on other sites More sharing options...
rocky Posted October 25, 2016 Share Posted October 25, 2016 Yes, and your payment modules. Check whether override/classes/PaymentModule.php exists. If it does, it may be preventing the email being sent. Also, make sure you aren't using any third-party payment modules that aren't programmed well and cause the order confirmation email to not be sent. Link to comment Share on other sites More sharing options...
nik10 Posted October 25, 2016 Share Posted October 25, 2016 I just checked it there ... third-party modules do you mean? because I have taken three forms on the official website of prestashop, "payment module marked", "payment by paypal" and "by check payment form", means that these three do not work for me? Link to comment Share on other sites More sharing options...
rocky Posted October 25, 2016 Share Posted October 25, 2016 I mean any module that wasn't included in the official PrestaShop archive. I have no idea whether any of your payment modules are causing the problem, but it's an area that can be investigated. Link to comment Share on other sites More sharing options...
nik10 Posted October 25, 2016 Share Posted October 25, 2016 It could also be the theme I have purchased on the official website of prestashop? how could I do to fix it? Link to comment Share on other sites More sharing options...
rocky Posted October 26, 2016 Share Posted October 26, 2016 I can't give you a precise solution until we know what the problem is. What's the name of the theme you are using? Some things you can try: 1. Go to the Advanced Parameters > Email tab. If "Log Emails" is set to "No", change it to "Yes" and then do a test order. Check whether the "Order confirmation" email is displayed in the log. 2. Send a test email at the bottom of the same tab and see if that comes though. Link to comment Share on other sites More sharing options...
nik10 Posted October 26, 2016 Share Posted October 26, 2016 The theme is called discounters this link: http://addons.prestashop.com/it/22763-discounter.html I tried to put it on email log, when I make the order appears in the log status "order_conf" without any error I am waiting for other checks thank you Link to comment Share on other sites More sharing options...
nandolv Posted October 31, 2016 Share Posted October 31, 2016 Hi! I need to send an email to the seller, and when i discover that Prestashop doesn't send this email i tried installing the Mailalerts Module v 3.6.0 I have Prestashop 1.6.1.6 and i've tried all the options that you write above. Now i have the templates translated and with New order subject. I receive the standar email for the buyer, and the trial email from email page, but i don't receive the merchant email. Any help?? Thanks!!! Link to comment Share on other sites More sharing options...
Amit Sarode Posted January 12, 2017 Share Posted January 12, 2017 Hi, I m using prestashop default theme with version 1.6.1.10. The mail alerts module showing error 1. When I am not login : This combination does not exist for this product. Please select another combination. 2. When I am Login : " [PrestaShopDatabaseException]Unknown column 'id_shop' in 'where clause' SELECT * FROM `ps_mailalert_customer_oos` WHERE (id_customer=417 OR customer_email='[email protected]') AND `id_product` = 670 AND `id_product_attribute` = 0 AND `id_shop` = 1at line 791 in file classes/db/Db.php" Please help me to resolve this error Thanks!!! Amit S Link to comment Share on other sites More sharing options...
Alvaro Tarela Posted January 27, 2017 Share Posted January 27, 2017 (edited) Amit, there is a problem in the data base. Options: 1) Uninstall the mailalerts module and reinstall again. 2) Add the field "id_shop" manually in the database , using MySQL. Edited January 27, 2017 by Alvaro Tarela (see edit history) Link to comment Share on other sites More sharing options...
RimiCsani Posted February 9, 2017 Share Posted February 9, 2017 The theme is called discounters this link: http://addons.prestashop.com/it/22763-discounter.html I tried to put it on email log, when I make the order appears in the log status "order_conf" without any error I am waiting for other checks thank you Hi, I have the same problem. Did you find the solution? Thank you Link to comment Share on other sites More sharing options...
bellini13 Posted February 9, 2017 Share Posted February 9, 2017 Hi, I have the same problem. Did you find the solution? Thank you did you read the post directly above yours? Link to comment Share on other sites More sharing options...
brookny Posted May 17, 2017 Share Posted May 17, 2017 Hi, I have all same problems. Cannot work Email Alert and my hosting is GoDaddy. Tried to do everything, nothing did not help. With TEST email to myself I will get junk email (with something ), but from contact us or order confirmation and etc.... I do not get any email. Although If I send email, the website tells: email sent. The language is in english. Please help! Link to comment Share on other sites More sharing options...
yo_golo Posted May 7, 2019 Share Posted May 7, 2019 Hi every one, I had the same kind of problem with Mailalerts 3.7.0. I went through this present pages dozens of time, trying to apply what was said. Nothing worked. Reverting to MailAlerts 3.6.1 solved it all. This happened on a Prestashop 1.6.1.23 Hope this can help. 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