]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Вернул содержимое
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Tue, 22 Oct 2024 12:30:59 +0000 (15:30 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Tue, 22 Oct 2024 12:30:59 +0000 (15:30 +0300)
erp24/services/MarketplaceService.php

index 8cc903dfb5fe7929168f556f3da95c5afbc4c9e5..0ddc67deed21b23ba024bc7cd18cca54aa7b4fc2 100644 (file)
@@ -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'])) {