DogFoodIT Posted September 21, 2010 Share Posted September 21, 2010 hi all, just wondering how the product notification works?? customer buys item selects "notify me of products updates" now in admin you can create an email as product_notification lock it in and hit send! that seems fine but i can not test the way it actually works as we have thousands of emails in our database and i do not want to send an inappropriate test email to the customers. i have been told that the notification email should be sent out when you update the product but i have read the code and can not see how this is happening. if someone could give me a brief rundown on how it works it would be much appreciated. Ben Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted September 21, 2010 Share Posted September 21, 2010 Hi Ben, I suggest you open up admin/includes/modules/product_notification.php Towards the bottom, find this: while (list($key, $value) = each ($audience)) { $mimemessage->send($value['firstname'] . ' ' . $value['lastname'], $value['email_address'], '', EMAIL_FROM, $this->title); } comment this section out completely and replace it by $mimemessage->send('Ben', 'ben@bensdomain.com', '', EMAIL_FROM, $this->title); use your own email addy, obviously. Then you can just test away ... only you will get an email. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
DogFoodIT Posted September 23, 2010 Author Share Posted September 23, 2010 Hi Ben, I suggest you open up admin/includes/modules/product_notification.php Towards the bottom, find this: while (list($key, $value) = each ($audience)) { $mimemessage->send($value['firstname'] . ' ' . $value['lastname'], $value['email_address'], '', EMAIL_FROM, $this->title); } comment this section out completely and replace it by $mimemessage->send('Ben', 'ben@bensdomain.com', '', EMAIL_FROM, $this->title); use your own email addy, obviously. Then you can just test away ... only you will get an email. Thanks heaps i will give it a go... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.