Add transfer of the client's comment to the WC order
This commit is contained in:
parent
22eaceb6f5
commit
a92253c0a4
@ -343,14 +343,14 @@ if ( ! class_exists( 'WC_Retailcrm_History' ) ) :
|
||||
$wcOrder->update_status($options[$order['status']]);
|
||||
}
|
||||
|
||||
if (isset($order['customerComment'])) {
|
||||
$wcOrder->set_customer_note($order['customerComment']);
|
||||
}
|
||||
|
||||
if (isset($order['managerComment']) && !empty($order['managerComment'])) {
|
||||
$wcOrder->add_order_note($order['managerComment'], 0, false);
|
||||
}
|
||||
|
||||
if (isset($order['customerComment']) && !empty($order['customerComment'])) {
|
||||
$wcOrder->set_customer_note($order['customerComment']);
|
||||
}
|
||||
|
||||
if (isset($order['firstName'])) {
|
||||
$wcOrder->set_shipping_first_name($order['firstName']);
|
||||
}
|
||||
@ -663,6 +663,10 @@ if ( ! class_exists( 'WC_Retailcrm_History' ) ) :
|
||||
$wcOrder->add_order_note($order['managerComment'], 0, false);
|
||||
}
|
||||
|
||||
if (isset($order['customerComment']) && !empty($order['customerComment'])) {
|
||||
$wcOrder->set_customer_note($order['customerComment']);
|
||||
}
|
||||
|
||||
// TODO Check if that works; also don't forget to set this company field while creating order from CMS!
|
||||
if ($this->retailcrm->getCorporateEnabled()
|
||||
&& self::isOrderCorporate($order)
|
||||
|
Loading…
x
Reference in New Issue
Block a user