Page 1 of 1

How to add the bill to address to the vendor notification

Posted: Wed Jul 07, 2010 9:06 am
by Kmbsjb
Good afternoon all and thanks for all the great info so far. I am having some issuse with the vendor notification with orders that are paid at one place and shipped to another. How can I send an invoice to the vendor that is just like the one I can print from the order module page? My vendor is having a problem and I was just going to add the following text to the vendor notification after the ship to part:

Code: Select all

<td>
<strong>Bill To:</strong>
<div style="padding-left:30px;">
<p>[BillFirstName] [BillLastName]<br>[BillingAddress]</p>
</div>
</td>
After seeing an invoice though I would rather send an invoice to the vendor so that they get all the info. Is this possable and if so could someone point me in the right direction so that I may rectify this situation. If not would this bit of code add the bill to address to the notification, please and thank you.

Re: How to add the bill to address to the vendor notification

Posted: Thu Jul 08, 2010 6:04 am
by mazhar
Instead of following code

Code: Select all

<p>[BillFirstName] [BillLastName]<br>[BillingAddress]</p>
You can try

Code: Select all

<p>$order.BillToFirstName $order.BillToLastName<br>$order.FormatAddress(true);</p>

Re: How to add the bill to address to the vendor notification

Posted: Thu Jul 08, 2010 7:21 am
by Kmbsjb
Thank you I will try that.

As for getting a copy of the invoice to the vendor, without printing it and sending it, is there a way to set it up so that it sends automatically just like the order notification?

Re: How to add the bill to address to the vendor notification

Posted: Thu Jul 08, 2010 9:50 am
by mazhar
try simply putting keyword vendor in CC address of order confirmation Email. If this works then it will send copy of order confirmation to vendor as well. If it doesn't work then try putting customer,vendor in to address of order confirmation template.

Re: How to add the bill to address to the vendor notification

Posted: Thu Jul 08, 2010 10:04 am
by Kmbsjb
Thank you again