From d28976151dc6cc535d46ac07bfc05165b1fe0ba6 Mon Sep 17 00:00:00 2001 From: pixelecho Date: Fri, 26 Apr 2024 09:48:17 +0200 Subject: [PATCH] Update ProductReader.php added product width, height and length to baselinker export --- src/Services/Readers/ProductReader.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Services/Readers/ProductReader.php b/src/Services/Readers/ProductReader.php index 7b6569d..fe299a2 100644 --- a/src/Services/Readers/ProductReader.php +++ b/src/Services/Readers/ProductReader.php @@ -180,6 +180,9 @@ public function getProductsData(string $productIds, SalesChannelContext $salesCh 'price' => $product->getCalculatedPrice()->getUnitPrice(), 'tax' => $product->getCalculatedPrice()->getTaxRules()->first()->getTaxRate(), 'weight' => $product->getWeight(), + 'width' => $product->getWidth()/10, + 'height' => $product->getHeight()/10, + 'length' => $product->getLength()/10, 'description' => $product->getTranslation('description'), 'description_extra1' => $product->getTranslation('metaDescription'), 'description_extra2' => '', @@ -650,4 +653,4 @@ private function preparePrice(Price $productPrice): array return $price; } -} \ No newline at end of file +}