Skip to content

Commit b03d660

Browse files
authored
Add forgotten indexOutOfStockOptions() method behaviour (#954)
1 parent cb8efe4 commit b03d660

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Helper/Entity/ProductHelper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,8 @@ public function canProductBeReindexed($product, $storeId, $isChildProduct = fals
11431143
}
11441144

11451145
$isInStock = true;
1146-
if (!$this->configHelper->getShowOutOfStock($storeId)) {
1146+
if (!$this->configHelper->getShowOutOfStock($storeId)
1147+
|| (!$this->configHelper->indexOutOfStockOptions($storeId) && $isChildProduct === true)) {
11471148
$isInStock = $this->productIsInStock($product, $storeId);
11481149
}
11491150

0 commit comments

Comments
 (0)