ivandong Posted March 22, 2007 Posted March 22, 2007 Hello, Right now I'm working on a website that has OSC installed, everything is ready but I only have one problem. This is the thing... I have 10 "mini-stores", when the customer finishes his order an email is sent to [email protected], I would like to separte products depending of the category they are listed and then send an email to a different email address depending the category id. For example: If I buy a pair of glasses, an Ipod and book: Glasses = Clothing category Ipod = Electronics Books = Books Normaly the email notification just take the $products_ordered variable and send it all together, how can i separate this to for example: send one emal to [email protected], one to [email protected] and the other to [email protected] ? The thing is, one order (for the costumer) but differents stores, so the owner of the book store does not get the order of the Ipod nor the glasses. Anyone that could help me would be great, not to create the code, just to get a little orientation about the subject regarding the variables that are used, etc. Thank you very much. And sorry for my english :P is not that good but is understandable.
vasttech Posted March 23, 2007 Posted March 23, 2007 First you would have to modify the database and admin side of your site to allow you add/modify/delete an e-mail address for each category. Then you would need to breakup the code in checkout_process.php that sends the order e-mail to scan the cart for each category, compile the products into an array for that category and send the e-mail to the address associated with that category. You would have to do this for all products in the cart. osCommerce Knowledge Base osCommerce Documentation Contributions
Recommended Posts
Archived
This topic is now archived and is closed to further replies.