From: fomichev Date: Tue, 22 Oct 2024 12:30:59 +0000 (+0300) Subject: Вернул содержимое X-Git-Tag: 1.6~13^2~42 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=534c505b7534d51cf00cd6fbb9bec53309aa4ad2;p=erp24_rep%2Fyii-erp24%2F.git Вернул содержимое --- diff --git a/erp24/services/MarketplaceService.php b/erp24/services/MarketplaceService.php index 8cc903df..0ddc67de 100644 --- a/erp24/services/MarketplaceService.php +++ b/erp24/services/MarketplaceService.php @@ -164,7 +164,11 @@ class MarketplaceService $offer->addChild('weight', $product['weight']); $offer->addChild('qty', $product['qty']); - + foreach ($product['composition'] as $component) { + $consist = $offer->addChild('consist', $component['quantity']); + $consist->addAttribute('name', $component['name']); + $consist->addAttribute('unit', $component['unit']); + } // Добавление параметров if (!empty($product['params'])) {