/** * Get select for all products * * @param \Magento\Store\Model\Store $store * @return \Magento\Framework\DB\Select */ protected function getAllProducts(\Magento\Store\Model\Store $store) { $select = parent::getAllProducts($store); return $select->where('cp.entity_id IN (?)', $this->limitationByProducts); }
/** * Retrieve select for reindex products of non anchor categories * * @param \Magento\Store\Model\Store $store * @return \Magento\Framework\DB\Select */ protected function getAnchorCategoriesSelect(\Magento\Store\Model\Store $store) { $select = parent::getAnchorCategoriesSelect($store); return $select->where('cc.entity_id IN (?)', $this->limitationByCategories); }