1
0
mirror of synced 2025-03-23 16:43:52 +03:00

Get full delivery info on order create

This commit is contained in:
max-baranikov 2021-12-02 18:58:48 +03:00 committed by GitHub
parent 6d95580155
commit 07735ed6d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -604,6 +604,10 @@ if ( ! class_exists( 'WC_Retailcrm_History' ) ) :
if (isset($crmOrder['company'])) {
$order['company'] = $crmOrder['company'];
}
if (isset($crmOrder['delivery'])) {
$order['delivery'] = $crmOrder['delivery'];
}
}
$customerId = isset($order['customer']['externalId']) ? $order['customer']['externalId'] : null;