diff --git a/src/Model/Resolver/Products/DataProvider/Product/CollectionProcessor/StockProcessor.php b/src/Model/Resolver/Products/DataProvider/Product/CollectionProcessor/StockProcessor.php deleted file mode 100644 index d2337ae..0000000 --- a/src/Model/Resolver/Products/DataProvider/Product/CollectionProcessor/StockProcessor.php +++ /dev/null @@ -1,50 +0,0 @@ -stockConfig = $stockConfig; - $this->stockStatusResource = $stockStatusResource; - } - - public function process( - Collection $collection, - SearchCriteriaInterface $searchCriteria, - array $attributeNames - ): Collection { - $singleProduct = CriteriaCheck::isSingleProductFilter($searchCriteria); - if (!$singleProduct && !$this->stockConfig->isShowOutOfStock()) { - $this->stockStatusResource->addIsInStockFilterToCollection($collection); - } - - return $collection; - } -} \ No newline at end of file diff --git a/src/etc/di.xml b/src/etc/di.xml index 1432dbb..56fcfea 100755 --- a/src/etc/di.xml +++ b/src/etc/di.xml @@ -15,9 +15,6 @@ - -