Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit b877de3

Browse files
author
Dmytro Voskoboinikov
committed
MAGETWO-72582: Configurable product displays the price of "out of stock" configuration
1 parent a48f3cc commit b877de3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableProductOutOfStockPage.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ protected function getLowestConfigurablePrice()
6262
if (null === $price) {
6363
$configurableOptions = $this->product->getConfigurableAttributesData();
6464
foreach ($configurableOptions['matrix'] as $option) {
65-
$price = $price === null ? $option['price'] : $price;
66-
if ($price > $option['price']) {
67-
$price = $option['price'];
65+
if ($option['quantity_and_stock_status']['is_in_stock'] !== 'Out of Stock') {
66+
$price = $price === null ? $option['price'] : $price;
67+
if ($price > $option['price']) {
68+
$price = $option['price'];
69+
}
6870
}
6971
}
7072
}

0 commit comments

Comments
 (0)