mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 20:17:14 +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)
|
if ($data->orderStatus !== OrderStatus::Completed)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$trackingCode = $data->shipments[0]?->trackingNumber;
|
if (isset($data->shipments)) {
|
||||||
|
$trackingCode = $data->shipments[0]?->trackingNumber;
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($trackingCode)) {
|
if (!empty($trackingCode)) {
|
||||||
$this->client->post('orders/'.$data->shopOrderId.'/notes', [
|
$this->client->post('orders/'.$data->shopOrderId.'/notes', [
|
||||||
@ -446,7 +448,7 @@ class Shopimporter_Woocommerce extends ShopimporterBase
|
|||||||
'meta_data' => [
|
'meta_data' => [
|
||||||
[
|
[
|
||||||
'key' => 'tracking_code',
|
'key' => 'tracking_code',
|
||||||
'value' => $data->shipments[0]?->trackingNumber
|
'value' => $trackingCode
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'key' => 'shipping_carrier',
|
'key' => 'shipping_carrier',
|
||||||
|
Loading…
Reference in New Issue
Block a user