Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
32 | protected function _linkSimpleProducts($groupedProductId) |
||
33 | { |
||
34 | $this->_prepareProductIds(); |
||
35 | $productLinkApi = Mage::getModel('catalog/product_link_api'); |
||
36 | $iterator = new \ArrayIterator($this->_groupedProductsIds); |
||
37 | while ($iterator->valid()) { |
||
38 | $productLinkApi->assign( |
||
39 | Mage_Catalog_Model_Product_Type::TYPE_GROUPED, $groupedProductId, $iterator->current() |
||
40 | ); |
||
41 | $iterator->next(); |
||
42 | } |
||
43 | } |
||
44 | |||
61 |