1
0
Fork 0
mirror of synced 2025-03-29 11:49: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'])) { if (isset($crmOrder['company'])) {
$order['company'] = $crmOrder['company']; $order['company'] = $crmOrder['company'];
} }
if (isset($crmOrder['delivery'])) {
$order['delivery'] = $crmOrder['delivery'];
}
} }
$customerId = isset($order['customer']['externalId']) ? $order['customer']['externalId'] : null; $customerId = isset($order['customer']['externalId']) ? $order['customer']['externalId'] : null;