Skip to content

Commit 8db1085

Browse files
committed
AC-7099:: 'As low as' label is still displayed for a Configurable Product price even if all options have the same price
1 parent f3b5612 commit 8db1085

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/ConfigurableProduct/Pricing/Price/ConfigurableRegularPrice.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,13 @@ public function checkProductsHaveEqualPrices():bool
9999
foreach ($this->getUsedProducts() as $subProduct) {
100100
if ($subProduct->isAvailable() && !$subProduct->isDisabled()) {
101101
if ($specialPrice=$subProduct->getSpecialPrice()) {
102-
if ($specialPrice!=$minPrice || $subProduct->getFinalPrice()!=$minPrice) {
102+
if ($specialPrice!=$minPrice) {
103103
return false;
104104
} else {
105105
return true;
106106
}
107+
} elseif ($subProduct->getFinalPrice()<$minPrice) {
108+
return false;
107109
}
108110
}
109111
}

0 commit comments

Comments
 (0)