mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 20:17:14 +01:00
Merge pull request #148 from exciler/bugfix-shopexport
Bugfix: Shopexport Versandpakete distinct, prevent Null-Exception, Sh…
This commit is contained in:
commit
d38d3fa736
@ -2068,7 +2068,7 @@ class Remote
|
|||||||
$result = $this->sendlist($i, $id, $data, true);
|
$result = $this->sendlist($i, $id, $data, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
} while (count($data[$i]['matrix_varianten']['artikel'])>=5000);
|
} while (count($data[$i]['matrix_varianten']['artikel'] ?? [])>=5000);
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
@ -2325,7 +2325,7 @@ class Remote
|
|||||||
$data->orderStatus = OrderStatus::Imported;
|
$data->orderStatus = OrderStatus::Imported;
|
||||||
|
|
||||||
$sql = "
|
$sql = "
|
||||||
SELECT
|
SELECT DISTINCT
|
||||||
v.id,
|
v.id,
|
||||||
v.tracking,
|
v.tracking,
|
||||||
v.tracking_link,
|
v.tracking_link,
|
||||||
|
@ -3432,7 +3432,7 @@ class Shopimporter_Shopware6 extends ShopimporterBase
|
|||||||
$this->shopwareRequest('POST', '_action/order_delivery/'.$deliveryId.'/state/ship');
|
$this->shopwareRequest('POST', '_action/order_delivery/'.$deliveryId.'/state/ship');
|
||||||
|
|
||||||
$deliveryData = [
|
$deliveryData = [
|
||||||
'trackingCodes' => [$data->getTrackingNumberList()]
|
'trackingCodes' => $data->getTrackingNumberList()
|
||||||
];
|
];
|
||||||
$this->shopwareRequest('PATCH', 'order-delivery/'.$deliveryId,$deliveryData);
|
$this->shopwareRequest('PATCH', 'order-delivery/'.$deliveryId,$deliveryData);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user