diff --git a/retailcrm/retailcrm.php b/retailcrm/retailcrm.php index 05203e4..5be7a29 100644 --- a/retailcrm/retailcrm.php +++ b/retailcrm/retailcrm.php @@ -410,6 +410,14 @@ class RetailCRM extends Module } $orderdb = new Order($params['order']->id); + + $comment = $orderdb->getFirstMessage(); + if ($comment !== false) { + $order['customerComment'] = $comment; + } + + unset($comment); + foreach ($orderdb->getProducts() as $item) { if (isset($item['product_attribute_id']) && $item['product_attribute_id'] > 0) { $productId = $item['product_id'] . '#' . $item['product_attribute_id'];