This is just a series of loops to process an order to send an email to all manufacturers of what was ordered.
It is a test file, more or less.
Read the file, change the order number inside to see it process on screen what should be emailed.
Later, it will actually process emails.
Legend: 
Download

Report
fix function tep_array_merge which is now just array_merge in MS2
so it really work in MS2
by:
dong@polink.com.tw
myweb:www.sohofood.com.tw
OOoops...
Forgot two variables that sent the image upload. Sorry.
JC
This is updated to conform to 2.2MS1. The file manufacturers.php was missing the conditional checks for the presence of an image in the modification process of a manufacturer. If the checks aren't performed, it breaks.
I did not write this code, just copied and pasted :).
Thanks for the mod, it works like a champ.
JC
This is a combination of Ajeh's first script and the admin part .
I have changed the orders.php script so that when the order goes from status "pending" to "processing" the email(s) will be sent to the manufacturers.
This file is the admin part . Here you can add or edit the manufacturer email adres via the admin.
As stated in Ajeh contribution the manufacturers table has te be altered:
Alter table manufacturers add manufacturers_email varchar(64) null default NULL;
Alter table manufacturers add manufacturers_send_email tinyint(1) NULL default 0;
This is just a series of loops to process an order to send an email to all manufacturers of what was ordered.
It is a test file, more or less.
Read the file, change the order number inside to see it process on screen what should be emailed.
Later, it will actually process emails.