]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
articule вместо guid origin/feature_smirnov_22024_11_28_articule_in_marketplace
authorAlexander Smirnov <fredeom@mail.ru>
Thu, 28 Nov 2024 12:27:24 +0000 (15:27 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Thu, 28 Nov 2024 12:27:24 +0000 (15:27 +0300)
erp24/api2/controllers/YandexMarketController.php

index 5a51dcebd914603fbbb5a3102c7267a85df9e6b0..84e2c14f0ad5fe8561f86b9f02b0b23b49b14c4c 100644 (file)
@@ -102,7 +102,7 @@ class YandexMarketController extends Controller
             }
             $model = [
                 'offer' => [
-                    'offerId' => $product->id,
+                    'offerId' => $product->articule ?? $product->id,
                     'category' => 'Цветы',
                     'marketCategoryId' => '91284',
                     'name' => !empty($matrixErpByGuid[$product->id]->matrixProperty->display_name) ?