Skip to content

Commit af0cfcf

Browse files
committed
ACP2E-748: Layered navigation filters don't work when "show out of stock" is enabled
1 parent 805b47c commit af0cfcf

File tree

6 files changed

+0
-55
lines changed

6 files changed

+0
-55
lines changed

app/code/Magento/Catalog/Model/OutOfStock.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

app/code/Magento/Catalog/Model/OutOfStockInterface.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

app/code/Magento/Catalog/etc/di.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,5 +1343,4 @@
13431343
</argument>
13441344
</arguments>
13451345
</type>
1346-
<preference for="Magento\Catalog\Model\OutOfStockInterface" type="Magento\Catalog\Model\OutOfStock" />
13471346
</config>

app/code/Magento/CatalogSearch/etc/frontend/di.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,4 @@
2121
<argument name="catalogLayer" xsi:type="object">Magento\Catalog\Model\Layer\Search</argument>
2222
</arguments>
2323
</virtualType>
24-
<type name="Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection">
25-
<plugin name="out_of_stock_sorting" type="Magento\InventoryCatalogSearch\Plugin\Model\ResourceModel\Fulltext\CollectionPlugin"/>
26-
</type>
2724
</config>

app/code/Magento/Elasticsearch/etc/di.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@
148148
<argument name="fieldsProviders" xsi:type="array">
149149
<item name="categories" xsi:type="object">Magento\Elasticsearch\Elasticsearch5\Model\Adapter\BatchDataMapper\CategoryFieldsProviderProxy</item>
150150
<item name="prices" xsi:type="object">Magento\Elasticsearch\Model\Adapter\BatchDataMapper\PriceFieldsProvider</item>
151-
<item name="isOutOfStock" xsi:type="object">Magento\InventoryElasticsearch\Model\Adapter\BatchDataMapper\IsOutOfStockFieldsProvider</item>
152151
</argument>
153152
</arguments>
154153
</virtualType>
@@ -370,7 +369,6 @@
370369
<item name="price" xsi:type="object">\Magento\Elasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\FieldName\Resolver\Price</item>
371370
<item name="categoryName" xsi:type="object">\Magento\Elasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\FieldName\Resolver\CategoryName</item>
372371
<item name="position" xsi:type="object">\Magento\Elasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\FieldName\Resolver\Position</item>
373-
<item name="isOutOfStock" xsi:type="object">\Magento\InventoryElasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\FieldName\Resolver\IsOutOfStock</item>
374372
<item name="default" xsi:type="object">\Magento\Elasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\FieldName\Resolver\DefaultResolver</item>
375373
</argument>
376374
</arguments>
@@ -383,7 +381,6 @@
383381
<item name="price" xsi:type="object" sortOrder="30">\Magento\Elasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\FieldName\Resolver\Price</item>
384382
<item name="categoryName" xsi:type="object" sortOrder="40">\Magento\Elasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\FieldName\Resolver\CategoryName</item>
385383
<item name="position" xsi:type="object" sortOrder="50">\Magento\Elasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\FieldName\Resolver\Position</item>
386-
<item name="isOutOfStock" xsi:type="object" sortOrder="150">\Magento\InventoryElasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\FieldName\Resolver\IsOutOfStock</item>
387384
<item name="default" xsi:type="object" sortOrder="100">elasticsearch5FieldNameDefaultResolver</item>
388385
</argument>
389386
</arguments>
@@ -575,7 +572,4 @@
575572
</argument>
576573
</arguments>
577574
</type>
578-
<type name="Magento\Elasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\DynamicField">
579-
<plugin name="dynamicFieldPlugin" type="Magento\InventoryElasticsearch\Plugin\Elasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\DynamicFieldPlugin"/>
580-
</type>
581575
</config>

app/code/Magento/Elasticsearch7/etc/di.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@
139139
<item name="price" xsi:type="object" sortOrder="30">\Magento\Elasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\FieldName\Resolver\Price</item>
140140
<item name="categoryName" xsi:type="object" sortOrder="40">\Magento\Elasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\FieldName\Resolver\CategoryName</item>
141141
<item name="position" xsi:type="object" sortOrder="50">\Magento\Elasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\FieldName\Resolver\Position</item>
142-
<item name="isOutOfStock" xsi:type="object" sortOrder="150">\Magento\InventoryElasticsearch\Model\Adapter\FieldMapper\Product\FieldProvider\FieldName\Resolver\IsOutOfStock</item>
143142
<item name="default" xsi:type="object" sortOrder="100">Magento\Elasticsearch7\Model\Adapter\FieldMapper\Product\FieldProvider\FieldName\Resolver\DefaultResolver</item>
144143
</argument>
145144
</arguments>

0 commit comments

Comments
 (0)