From 536c0d7b08796fb7fa7439bda6812ec83ad9e430 Mon Sep 17 00:00:00 2001 From: fomichev Date: Wed, 23 Oct 2024 16:11:01 +0300 Subject: [PATCH] =?utf8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20?= =?utf8?q?=D0=BA=D0=BE=D0=BB-=D0=B2=D0=BE=2010?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api2/controllers/FlowwowController.php | 2 +- erp24/services/MarketplaceService.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/erp24/api2/controllers/FlowwowController.php b/erp24/api2/controllers/FlowwowController.php index b550a5e5..9f7e69cc 100644 --- a/erp24/api2/controllers/FlowwowController.php +++ b/erp24/api2/controllers/FlowwowController.php @@ -15,7 +15,7 @@ class FlowwowController extends Controller public function actionFeed() { // Получаем информацию о продуктах - $productsInfo = MarketplaceService::getSomeProductsInfo(3); + $productsInfo = MarketplaceService::getSomeProductsInfo(5); // Генерируем XML-фид $xmlFeed = MarketplaceService::createXMLFeed($productsInfo); diff --git a/erp24/services/MarketplaceService.php b/erp24/services/MarketplaceService.php index b7ec23bb..2a44ec72 100644 --- a/erp24/services/MarketplaceService.php +++ b/erp24/services/MarketplaceService.php @@ -171,6 +171,7 @@ class MarketplaceService $consist = $offer->addChild('consist', $component['quantity']); $consist->addAttribute('name', $component['name']); $consist->addAttribute('unit', $component['unit']); + $consist->addAttribute('cost', 12); } // Добавление параметров @@ -213,7 +214,7 @@ class MarketplaceService } private static function getProductOldPrice($productId) { return null; } private static function getProductDescription($productId) { return 'Описание'; } - private static function getProductQty($productId) { return 10; } + private static function getProductQty($productId) { return 9; } private static function getProductWeight($productId) { return 0.5; } -- 2.39.5