\classes\order\OrderInvoice.php
public function getProducts($products = false, $selected_products = false, $selected_qty = false)
{
if (!$products) {
$products = $this->getProductsDetail();
}
$order = new Order($this->id_order);
$customized_datas = Product::getAllCustomizedDatas($order->id_cart);
$result_array = array();
foreach ($products as $row) {
// hack start
if( end($products) === $row ) {
$row['first_order_message'] = nl2br($order->getFirstMessage());
$CustomerThread_messagelar = CustomerMessage::getMessagesByOrderId($order->id, $private = false); // last Customer Message private = false
$row['CustomerThread_message'] = $CustomerThread_messagelar[0][message]; // last Customer Message
// ddd($CustomerThread_message);
}
in invoice.tpl
{$order_detail.CustomerThread_message}