Skip to content

Commit f5d6902

Browse files
committed
MC-35016: Out of stock products doesn't filter properly using "price" filter
1 parent 4ec6398 commit f5d6902

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

app/code/Magento/ConfigurableProduct/Model/ResourceModel/Product/Indexer/Price/Configurable.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -153,30 +153,6 @@ public function executeByDimensions(array $dimensions, \Traversable $entityIds)
153153
$this->applyConfigurableOption($temporaryPriceTable, $dimensions, iterator_to_array($entityIds));
154154
}
155155

156-
/**
157-
* Filter select by inventory
158-
*
159-
* @param Select $select
160-
* @return Select
161-
*/
162-
public function filterSelectByInventory(Select $select)
163-
{
164-
$select->join(
165-
['si' => $this->getTable('cataloginventory_stock_item')],
166-
'si.product_id = l.product_id',
167-
[]
168-
);
169-
$select->join(
170-
['si_parent' => $this->getTable('cataloginventory_stock_item')],
171-
'si_parent.product_id = l.parent_id',
172-
[]
173-
);
174-
$select->where('si.is_in_stock = ?', Stock::STOCK_IN_STOCK);
175-
$select->orWhere('si_parent.is_in_stock = ?', Stock::STOCK_OUT_OF_STOCK);
176-
177-
return $select;
178-
}
179-
180156
/**
181157
* Apply configurable option
182158
*

app/code/Magento/ConfigurableProduct/Model/ResourceModel/Product/Indexer/Price/StockStatusBaseSelectProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(
4343
}
4444

4545
/**
46-
* {@inheritdoc}
46+
* @inheritdoc
4747
*/
4848
public function process(Select $select)
4949
{

0 commit comments

Comments
 (0)