Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Include Customer Notes On Supplier Emails Rate Topic   * * * * - 1 votes

 
  • Jmoffat
  • Member
  • Members
  • Join Date: 15-Oct 12
  • 39 posts

Posted 14 January 2015 - 12:54 PM #1

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

{__("supplier_email_header")}<br /><br />

{include file="addons/suppliers/invoice.tpl"}<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>
Kind regards<br>
Artemis Team</td></tr></table>

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.

could someone please suggest a way, preferably a section of code that we can add to our current template, which will display this information?

thanks
Jamie

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19983 posts

Posted 14 January 2015 - 01:45 PM #2

Add the following code to the notification.tpl file:

{if $order_info.notes}
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr valign="top">
                <td style="font-size: 12px; font-family: Arial;"><strong>{__("notes")}:</strong></td>
            </tr>
            <tr valign="top">
                <td><div style="overflow-x: auto; clear: both; width: 510px; height: 100%; padding-bottom: 20px; overflow-y: hidden; font-size: 12px; font-family: Arial;">{$order_info.notes|nl2br nofilter}</div></td>
            </tr>
            </table>
{/if}

Hope this will help
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Jmoffat
  • Member
  • Members
  • Join Date: 15-Oct 12
  • 39 posts

Posted 14 January 2015 - 03:08 PM #3

Add the following code to the notification.tpl file:

{if $order_info.notes}
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
			<tr valign="top">
				<td style="font-size: 12px; font-family: Arial;"><strong>{__("notes")}:</strong></td>
			</tr>
			<tr valign="top">
				<td><div style="overflow-x: auto; clear: both; width: 510px; height: 100%; padding-bottom: 20px; overflow-y: hidden; font-size: 12px; font-family: Arial;">{$order_info.notes|nl2br nofilter}</div></td>
			</tr>
			</table>
{/if}

Hope this will help


Thanks eComLabs

tested and works like a charm!

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19983 posts

Posted 14 January 2015 - 03:52 PM #4

You are welcome!
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)