From c3955b65bb081dde4b6e1081539dc591a0affcc0 Mon Sep 17 00:00:00 2001 From: "stephan.altmann" Date: Wed, 27 Feb 2019 13:32:23 +0100 Subject: [PATCH] fixed deleted products in orders --- Services/ReadData/External/ReadOrdersService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/ReadData/External/ReadOrdersService.php b/Services/ReadData/External/ReadOrdersService.php index ed996eb..46d0236 100644 --- a/Services/ReadData/External/ReadOrdersService.php +++ b/Services/ReadData/External/ReadOrdersService.php @@ -85,7 +85,7 @@ public function transform(array $data) { $orderPosition->setName($position["ItemTitle"]); - if(array_key_exists('ShopProductDetails', $position)) { + if(array_key_exists('ShopProductDetails', $position) && array_key_exists('ProductID', $position['ShopProductDetails'])) { $orderPosition->setExternalIdentifier($position["ShopProductDetails"]["ProductID"]); $orderPosition->setInternalIdentifier($position['ShopProductDetails']['EAN']); } else {