Include Customer Notes On Supplier Emails

Hi everyone



We use the supplier addon to forward orders to our drop shipping suppliers.



I’ve stripped down the code for the supplier automated email so that it will appear more like a delivery note with the bare minimum being shown. It now only shows the header with our logo and address, the customers shipping address and the products ordered. That way our supplier can print out the automated email without having to edit it at all and include the print with the shipment when they dispatch.



the code i have looks like so. it can be found at /public_html/design/backend/mail/templates/addons/suppliers/notification.tpl


<br />
{__("supplier_email_header")}<br /><br /><br />
<br />
{include file="addons/suppliers/invoice.tpl"}<br><br />
<br />
<Table align="center"><tr><td>Thank you for shopping with us. If you have any you have any questions please contact us.<br><br><br />
Kind regards<br><br />
Artemis Team</td></tr></table><br />

```<br />
<br />
The problem we have at the moment is our supplier emails do not include the customer notes. Our customers often leave delivery instructions in the notes box at the checkout and we need the supplier to receive these as well.<br />
<br />
could someone please suggest a way, preferably a section of code that we can add to our current template, which will display this information?<br />
<br />
thanks<br />
Jamie

Add the following code to the notification.tpl file:



{if $order_info.notes}








{__("notes")}:
{$order_info.notes|nl2br nofilter}

{/if}




Hope this will help

[quote name='eComLabs' timestamp='1421243124' post='202590']

Add the following code to the notification.tpl file:



{if $order_info.notes}








{__("notes")}:
{$order_info.notes|nl2br nofilter}

{/if}




Hope this will help

[/quote]



Thanks eComLabs



tested and works like a charm!

You are welcome!