ssimard Posted May 11, 2017 Posted May 11, 2017 Hi everyone, I tested the Mail alerts module yesterday, both on my local dev setup and online on my real server and I couldn't get the customer product availability email to work. I checked YES on the product availability tab. Went to a product and changed stock value to 0. Received an email to my merchant email address stating that the stocks were low for that item (perfect). Navigated to that product and entered my email to be notified when product is available again. Checked the module database table to make sure my email was added (and it was). Changed stocks back to 50 for that product. 7.Waited for the notification email but it never came.. Checked back into the database table and my email was gone, which means it got triggered but did nothing. I'm not sure if this module is complete or supposed to work yet, hence my question, should it be working and if so, what could be wrong on my end ? Thanks !!
ssimard Posted May 11, 2017 Author Posted May 11, 2017 Was just about to tell you that, I updated it and then all the strings went back in english (from french). I uninstalled then reinstalled and everything came back in french again. Also, for some reasons, I am still not receiving the customers notifications, just getting the out of stock notifications sent to the merchant. Tried on both dev and online, any idea ?
ssimard Posted May 11, 2017 Author Posted May 11, 2017 From what I can tell I seems to have them all. See screenshot. Productoutofstock and neworder are working fine. Customerqty is not.
ssimard Posted May 12, 2017 Author Posted May 12, 2017 OK, the new update was not working either BUT, I have identified and fixed the problems. I'm not sure I've did it the proper way but basically, this is a path issue in the modules/mailalerts/classes/MailAlert.php. The code is looking for fileexists(dirname(FILE).'/mails/'.$iso.'/customerqty.txt') but the 'mails' folder is located at the root of the module folder (not in classes/mails). I've fixed it by adding "/.." which now gives fileexists(dirname(FILE).'/../mails/'.$iso.'/customerqty.txt'). Here's a screenshot of my fix: . Works perfectly now but I also noticed that you can't add these files to the theme since the code is not present like it is for the merchant alert email (see screenshot). . Oh and one last thing, all the html files shows "powered by Prestashop at the end. "{shop_name} powered by PrestaShop™"
lesley Posted December 7, 2017 Posted December 7, 2017 Until the store launches you can download the zip here, https://github.com/thirtybees/mailalerts/releases
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