glennlawre Posted December 29, 2013 Share Posted December 29, 2013 (edited) I recently upgraded to PS 1.5.6 and my mail alerts module does not allow multiple email addresses to be saved. It only saves the first one in the list. I have added one email per row like it says. This worked fine v1.4.9. My mail alerts module is v2.8. I have uninstalled, deleted and installed again from the default Prestashop downloaded files. Any ideas anyone? Cheers... Edited January 9, 2014 by glennlawre (see edit history) Link to comment Share on other sites More sharing options...
glennlawre Posted January 2, 2014 Author Share Posted January 2, 2014 Anyone??? Link to comment Share on other sites More sharing options...
glennlawre Posted January 4, 2014 Author Share Posted January 4, 2014 I have just realized that this module will not allow me to change the email address at all, it will only use the store's contact email address, the one configured in Store Contacts. I have tried adding two email addresses directly into the database, but the email only gets sent to the second email address I entered. Does anyone have any ideas what might be wrong here? Link to comment Share on other sites More sharing options...
El Patron Posted January 4, 2014 Share Posted January 4, 2014 do you receive 'any' error message when you try to save two or more email addresses? Link to comment Share on other sites More sharing options...
glennlawre Posted January 5, 2014 Author Share Posted January 5, 2014 No errors, it just looks like it has saved but when I scroll down to review only the store contact email is there. Link to comment Share on other sites More sharing options...
El Patron Posted January 5, 2014 Share Posted January 5, 2014 the code for email addresses is 'very' simple and I did not really see a way it would fail without an error message of some sort. try this for us; 1. remove all email addresses and save, do you see error message that at least one email address is required? 2. turn on error reporting, if you need help doing this see this: http://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information/ after you have errors turn on try adding more than one email address to see if php error is shown Link to comment Share on other sites More sharing options...
glennlawre Posted January 6, 2014 Author Share Posted January 6, 2014 Hey El Patron, So I have tried these things with the below results: 1. If I delete the email address and save, I get no errors. It stays on the module page and says changes made successfully. The area to enter the email address is blank. If I close out of the module and go back in, the store email address is in again. 2. After turning on error reporting, when I try open the module I get the below errors - PHP Notice: Undefined index: cols in "my-domain&path"\cache\smarty\compile\4a\3c\9b\4a3c9bd5aebbc7912a37b5c9244838b5204ad576.file.form.tpl.php on line 467PHP Notice: Undefined index: rows in "my-domain&path"\cache\smarty\compile\4a\3c\9b\4a3c9bd5aebbc7912a37b5c9244838b5204ad576.file.form.tpl.php on line 468 I have had a look for these errors on the Google box, but nothing really showing up to do with my errors. I have also cleared my cache with "Clear Smarty cache & Autoload cache" Any ideas what this might be? Cheers... Link to comment Share on other sites More sharing options...
El Patron Posted January 6, 2014 Share Posted January 6, 2014 I have not a clue and your issue is just weird . A s the email addresses are stored in the configuration table, i.e. mysql db, then it's not a simple file permission issue. You could check/update the field directly in your mysql DB using PHPMYADMIN table (yourprefix)_configuration field: MA_MERCHANT_MAILS http://screencast.com/t/vCtyVugj Link to comment Share on other sites More sharing options...
El Patron Posted January 6, 2014 Share Posted January 6, 2014 also out of curiosity, install bankwire module and see if you can update it in it's configuration. Link to comment Share on other sites More sharing options...
glennlawre Posted January 7, 2014 Author Share Posted January 7, 2014 (edited) I had already tried adding the email address to my db directly, but it only sends the email to the second address I add, not both. I added the second email address on a new line in the db, like the module advises. I checked this on my 1.4.9 db (my old site where this works fine) and can see that the email addresses are separated with a comma. I tried using this format also but no email gets sent at all. I have enabled the Bank Wire and tested saving info to this module with no issues. I can save, close out and go back in and all info is saved. See attached image of my module after enabling and saving. You are correct, this is a weird one..! Edited January 7, 2014 by glennlawre (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted January 7, 2014 Share Posted January 7, 2014 ave maria..that is just weird this may be one of those things you live with until it sorts itself out or get someone to look at your shop internals. did you add a ';' at the end of the email addresses when updated configuration with phpmyadmin? anyway...weird Link to comment Share on other sites More sharing options...
glennlawre Posted January 8, 2014 Author Share Posted January 8, 2014 I didn't try a ; just a , and also a new line. Will try and let you know. Link to comment Share on other sites More sharing options...
glennlawre Posted January 8, 2014 Author Share Posted January 8, 2014 Adding a ";" between the email addresses does not resolve I'm afraid! Not to worry though, maybe this will resolve itself in the next release. For now I will look to setup some forwards on the email accounts that will send the required emails to the required addresses. Thanks for your advice El Patron... Link to comment Share on other sites More sharing options...
El Patron Posted January 8, 2014 Share Posted January 8, 2014 try this...uninstall and then delete it...with malice attached is a mail alerts from a working 1.5.6.1, install it. fingers crossed mailalerts.zip 2 Link to comment Share on other sites More sharing options...
glennlawre Posted January 9, 2014 Author Share Posted January 9, 2014 Well what do you know, it's sorted After uninstalling, deleting and reinstalling your module El Patron, this is now working for me! I had already done this from the core files and it didn't resolve... Thanks a lot for the help, much appreciated... Best regards, Glenn Link to comment Share on other sites More sharing options...
El Patron Posted January 9, 2014 Share Posted January 9, 2014 Well what do you know, it's sorted After uninstalling, deleting and reinstalling your module El Patron, this is now working for me! I had already done this from the core files and it didn't resolve... Thanks a lot for the help, much appreciated... Best regards, Glenn Holy cow!... very please you can move on now... happy selling Link to comment Share on other sites More sharing options...
AppleEater Posted February 4, 2014 Share Posted February 4, 2014 It seems the mailalerts module v3.2 in GitHub and in PrestaShop Addons is corrupted. Upgrading from v2.5 to v3.2 brings an empty mailalerts.js file which the browser fails to load. 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