public function loadInventoryData($storeId, $productIds)
    {
        $websiteId = $this->getWebsiteId($storeId);
        $stockId   = $this->getStockId($websiteId);

        $select = $this->getConnection()->select()
            ->from(['ciss' => $this->getTable('cataloginventory_stock_status')], ['product_id', 'stock_status', 'qty'])
            ->where('ciss.stock_id = ?', $stockId)
            ->where('ciss.website_id = ?', $this->stockConfiguration->getDefaultScopeId())
            ->where('ciss.product_id IN(?)', $productIds);

        return $this->getConnection()->fetchAll($select);
    }
public function loadInventoryData($storeId, $productIds)
    {
        $websiteId = $this->getWebsiteId($storeId);
        $stockId   = $this->getStockId($websiteId);

        $select = $this->getConnection()->select()
            ->from(['ciss' => $this->getTable('cataloginventory_stock_status')], ['product_id', 'stock_status', 'qty'])
            ->where('ciss.stock_id = ?', $stockId)
            ->where('ciss.website_id = ?', $this->stockConfiguration->getDefaultScopeId())
            ->where('ciss.product_id IN(?)', $productIds);

        return $this->getConnection()->fetchAll($select);
    }
public function loadInventoryData ( $ storeId , $ productIds ) { $ websiteId = $ this -> getWebsiteId ( $ storeId ) ; $ stockId = $ this -> getStockId ( $ websiteId ) ; $ select = $ this -> getConnection ( ) -> select ( ) -> from ( [ 'ciss' => $ this -> getTable ( 'cataloginventory_stock_status' ) ] , [ 'product_id' , 'stock_status' , 'qty' ] ) -> where ( 'ciss.stock_id = ?' , $ stockId ) -> where ( 'ciss.website_id = ?' , $ this -> stockConfiguration -> getDefaultScopeId ( ) ) -> where ( 'ciss.product_id IN(?)' , $ productIds ) ; return $ this -> getConnection ( ) -> fetchAll ( $ select ) ; }
Load inventory data for a list of product ids and a given store.

@param integer $storeId    Store id.
@param array   $productIds Product ids list.

@return array
Load inventory data for a list of product ids and a given store .