mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 12:07:15 +01:00
Bugfix woocommerce ImportUpdateAuftrag tracking
This commit is contained in:
parent
24f6623016
commit
c7b84603d4
@ -426,7 +426,9 @@ class Shopimporter_Woocommerce extends ShopimporterBase
|
||||
if ($data->orderStatus !== OrderStatus::Completed)
|
||||
return;
|
||||
|
||||
$trackingCode = $data->shipments[0]?->trackingNumber;
|
||||
if (isset($data->shipments)) {
|
||||
$trackingCode = $data->shipments[0]?->trackingNumber;
|
||||
}
|
||||
|
||||
if (!empty($trackingCode)) {
|
||||
$this->client->post('orders/'.$data->shopOrderId.'/notes', [
|
||||
@ -446,7 +448,7 @@ class Shopimporter_Woocommerce extends ShopimporterBase
|
||||
'meta_data' => [
|
||||
[
|
||||
'key' => 'tracking_code',
|
||||
'value' => $data->shipments[0]?->trackingNumber
|
||||
'value' => $trackingCode
|
||||
],
|
||||
[
|
||||
'key' => 'shipping_carrier',
|
||||
|
Loading…
Reference in New Issue
Block a user