getDataSource()); $harvester->setDelete($this->getDelete()); $this->_aggregateInventoryItem($this->getStartId(), $harvester); $harvester->postSegment(); } protected function _aggregateInventoryItem($itemId, $harvester) { $inventoryItem = Mage::getModel('cataloginventory/stock_item')->load($itemId); $productId = $inventoryItem->getProductId(); if ($product = Mage::getModel('catalog/product')->load($productId)) { foreach ($product->getStoreIds() as $storeId) { $inventoryItem->setStoreId($storeId); $harvester->push($inventoryItem); } } } }