
Originally Posted by
dealbyethan.com
Thanks for everyone's help. This module seems to work okay now. I would like to make a few changes. Please advise. Thank you.
1. How do I change the email subject line to "Order # for (customer's name)"?
2. How do I add supplier's name in the email? I have quite a lot of suppliers.
Alright - if you are using my modification, you will need to change two places. If you are not using my mod - the first change only should do it.
First Change:
I haven't tried this yet, but I imagine it will work: Find this code:
Code:
$tematk=$PO_SUBJECT;
$tematk=str_replace("{po_number}",$kod,$tematk);
Comment those both out, and then add this below it:
Code:
$tematk = 'Order #'.$kod.' for '.$row4[5];
Second Change:
This should only be done if you used my modification (written about in posts above)
Find this code:
Code:
$subject = 'PO #'.$ponumber;
Comment that out and add this below it:
Code:
$subject = 'Order #'.$ponumber.' for '.$orders['customers_name'];
Supplier's Name
As for adding the suppliers name into the email - yes, that should be easy. Just depends on where you want to add it. If you are using my modified code, the query to get the subcontractors information is already there. Simply use this variable where you want to add the name into the email:
Code:
$subcontractor['email_address'];
Hopefully that helps!
Bookmarks