In a basic block I'm getting the featured products, however I only get the products that are in stock:
public function getProducts()
{
$collection = $this->_productCollectionFactory->create();
$collection->addAttributeToSelect('*')
->addAttributeToFilter('featured', '1');
$collection->getSelect()
->limit(8);
return $collection;
}
How can I get the out of stock products (I guess those which stock_status=0 in cataloginventory_stock_status) as well? without changing "anything" in the backend configuration.