mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-03 19:53:19 +03:00
Add customer comment (#26)
This commit is contained in:
parent
3d3d55a9d1
commit
30e53fa5c6
@ -410,6 +410,14 @@ class RetailCRM extends Module
|
|||||||
}
|
}
|
||||||
|
|
||||||
$orderdb = new Order($params['order']->id);
|
$orderdb = new Order($params['order']->id);
|
||||||
|
|
||||||
|
$comment = $orderdb->getFirstMessage();
|
||||||
|
if ($comment !== false) {
|
||||||
|
$order['customerComment'] = $comment;
|
||||||
|
}
|
||||||
|
|
||||||
|
unset($comment);
|
||||||
|
|
||||||
foreach ($orderdb->getProducts() as $item) {
|
foreach ($orderdb->getProducts() as $item) {
|
||||||
if (isset($item['product_attribute_id']) && $item['product_attribute_id'] > 0) {
|
if (isset($item['product_attribute_id']) && $item['product_attribute_id'] > 0) {
|
||||||
$productId = $item['product_id'] . '#' . $item['product_attribute_id'];
|
$productId = $item['product_id'] . '#' . $item['product_attribute_id'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user