theMusicMan Posted July 6, 2003 Posted July 6, 2003 Hi All Well, I'm certainly getting well stuck into osCommerce - it's fantastic. Right, I have a requirement to send an e-mail to someone once I have changed the status of an order to a particular value. This person is part of my 'process' and does the printing of the t-shirts my customers purchase from me. Now, is there any way I can send her an e-mail or copy of he order automatically when I change the Order Status to a specified value? This would certainly help if it were possible. Also, apologies if this is posted in the wrong category.... John John
theMusicMan Posted July 8, 2003 Author Posted July 8, 2003 anyone have any ideas as to how I do this..? John
halbert Posted July 8, 2003 Posted July 8, 2003 I think you can do this from the Admin section -- go to the Orders listing, then click on the order you want. Click Edit... scroll to the bottom and have a look at the text entry box. You can change the status there. Make sure Notify Customer is selected then click Update and it should send the email out. I just was testing this feature and it works for me using cvs 2.2 5-18-03 Hope this helps! -al
theMusicMan Posted July 8, 2003 Author Posted July 8, 2003 Hi Halbert Thanks for this... but what I need is for teh system to send an e-mail to someone else - i.e. not the person who placed the order. I can see that the 'update' button sends an email to the person who sent the order but that's not what I want. I need to send the e-mail to someone else!! John
halbert Posted July 8, 2003 Posted July 8, 2003 Ahh, sorry, I didn't realize you wanted to redirect the email to someone else. Unfortunately that I can't help you with... If you have a bit of programming background you can take a look at the admin/orders.php file and find the form where it's updating the status from the previously mentioned update. You could try and hard-code an email to be sent to your 3rd party there. Hope this helps more than the first one! -al
Guest Posted July 9, 2003 Posted July 9, 2003 Musicman, Maybe you can add her to the store as another admin and then set the store to send her copies of all e-mails once the status changes? If all orders of a certain status have to be dealt with by her - then maybe you could harcode it into the store. Look at the part in config that has to do with where to send extra order e-mails - then look at the part that notify customer of status change nad see if you can set the notify in config to work on a certain status only instead of with all orders maybe and ifelse sort of thing. If orders - maybe certain manufacturer and certain status or just certain status, then send copies to A else do nothing
theMusicMan Posted July 9, 2003 Author Posted July 9, 2003 thanks blue... sound like a great way to start this.... thanks. I'm feeling quite pleased with myself at the moment because though this is no mean accomplishment, I have managed to add another box to the main screen. Now, for someone who is not a programmer or developer, and who does not know the structure of osCommerce, I feel pleased that I have achieved this. I think in the main, though I am quite logical, it is testament to the superb development effort by the team for including detailed comments and remarks within the code that makes following the logic straightforward. So, back OT... the only thing is, I don't really know where to start on this one i.e. which file is the file that looks at 'order status' etc... any chance you might be able to let me know that. Given current *feeling good* factor, I'm inclined to have a go at your suggestion (with backups of course!!!) John John
Recommended Posts
Archived
This topic is now archived and is closed to further replies.