From: Alexander Smirnov Date: Tue, 12 Nov 2024 14:32:12 +0000 (+0300) Subject: [ERP-148] доработка яндекс маркетплейса 7 X-Git-Tag: 1.6~14^2~1 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=a4572acfe3c89f47d7b1d8e6323647d6ed6cb6b3;p=erp24_rep%2Fyii-erp24%2F.git [ERP-148] доработка яндекс маркетплейса 7 --- 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)], ],