From: fomichev Date: Wed, 23 Oct 2024 13:11:01 +0000 (+0300) Subject: Изменил кол-во 10 X-Git-Tag: 1.6~13^2~35 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=536c0d7b08796fb7fa7439bda6812ec83ad9e430;p=erp24_rep%2Fyii-erp24%2F.git Изменил кол-во 10 --- 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; }