]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-148] доработка яндекс маркетплейса 7
authorAlexander Smirnov <fredeom@mail.ru>
Tue, 12 Nov 2024 14:32:12 +0000 (17:32 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Tue, 12 Nov 2024 14:32:12 +0000 (17:32 +0300)
erp24/api2/controllers/YandexMarketController.php

index 44b8d205c2ef32f91b6c54e26e3f53a2bddad8eb..b6cfac0a46e9343ad4b0e740f14f1665e5287277 100644 (file)
@@ -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)],
                 ],