Jump to content

[solved] mailalerts 3.6.0 does not send mail to vendor / seller


sumsel

Recommended Posts

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 by sumsel (see edit history)
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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 by sumsel (see edit history)
Link to comment
Share on other sites

@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

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 by Logical IT (see edit history)
  • Like 1
Link to comment
Share on other sites

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

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.

  • Like 2
Link to comment
Share on other sites

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

  • 3 weeks later...

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

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

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

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

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

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

Hi! I need to send an email to the seller, and when i discover that Prestashop doesn't send this email  :huh2:  :huh2:  :huh2: 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

  • 2 months later...

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` = 1

at 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

  • 3 weeks later...
  • 2 weeks later...
  • 3 months later...

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

  • 1 year later...

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

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...