billybrag Posted July 5, 2004 Share Posted July 5, 2004 is there a way, or does anyone have any suggestions on how i could implement this. what i have is an online book shop that i share with a friend. We use the model number to distinguish whose books belong to who, for example all my books are in the form M1234 where as my friends are all S1234 is there a way that i can tell the admin that when a product starting with the model number M..... is sold then it sends me an email, otherwise it sends my friend one, if you see what i mean? cheers. "because it'll hurt more"- the greatest film of all time? Link to comment Share on other sites More sharing options...
user99999999 Posted July 5, 2004 Share Posted July 5, 2004 I think you can put two addresses in admin (SEND_EXTRA_ORDER_EMAILS_TO = addr1,addr2) and it will send a copy to both. One problem is that if someone orders both M and S then the code below would only send to the first one. Around line 260 in checkout_process.php // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { if (substr($order->products[0]['model'],0,1) == 'M') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } else { tep_mail('', '[email protected]', EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } } Link to comment Share on other sites More sharing options...
billybrag Posted July 6, 2004 Author Share Posted July 6, 2004 ok then, to cover that, what would i do to make it so that if just a S.... was ordered an email is sent to my friend, otherwise it is sent to me? "because it'll hurt more"- the greatest film of all time? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.