From a4572acfe3c89f47d7b1d8e6323647d6ed6cb6b3 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Tue, 12 Nov 2024 17:32:12 +0300 Subject: [PATCH] =?utf8?q?[ERP-148]=20=D0=B4=D0=BE=D1=80=D0=B0=D0=B1=D0=BE?= =?utf8?q?=D1=82=D0=BA=D0=B0=20=D1=8F=D0=BD=D0=B4=D0=B5=D0=BA=D1=81=20?= =?utf8?q?=D0=BC=D0=B0=D1=80=D0=BA=D0=B5=D1=82=D0=BF=D0=BB=D0=B5=D0=B9?= =?utf8?q?=D1=81=D0=B0=207?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api2/controllers/YandexMarketController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/api2/controllers/YandexMarketController.php b/erp24/api2/controllers/YandexMarketController.php index 44b8d205..b6cfac0a 100644 --- a/erp24/api2/controllers/YandexMarketController.php +++ b/erp24/api2/controllers/YandexMarketController.php @@ -107,12 +107,12 @@ class YandexMarketController extends Controller 'value' => $matrixErpByGuid[$product->id]->price->price, ], 'vendor' => 'База Цветов 24', - 'weightDimensions' => [ + 'weightDimensions' => new Model\OfferWeightDimensionsDTO([ 'height' => $matrixErpByGuid[$product->id]->matrixProperty->height ?? 40, 'length' => $matrixErpByGuid[$product->id]->matrixProperty->length ?? 23, 'weight' => $matrixErpByGuid[$product->id]->matrixProperty->weight ?? 0.15, 'width' => $matrixErpByGuid[$product->id]->matrixProperty->width ?? 20, - ], + ]), 'description' => $matrixErpByGuid[$product->id]->matrixProperty->description ?? '-', 'pictures' => ['https://media.dev1.erp-flowers.ru/media/view-image?id=' . ($matrixErpByGuid[$product->id]->matrixProperty->image_id ?? null)], ], -- 2.39.5