Skip to content

Commit 43c50c3

Browse files
author
Stanislav Idolov
authored
ENGCOM-3195: Fixed Issue: Special price of 0.0000 is not shown on frontend, but is calculated in cart #18604
2 parents 31d8d7f + 1066343 commit 43c50c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Pricing/Price/BasePrice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getValue()
3030
$this->value = false;
3131
foreach ($this->priceInfo->getPrices() as $price) {
3232
if ($price instanceof BasePriceProviderInterface && $price->getValue() !== false) {
33-
$this->value = min($price->getValue(), $this->value ?: $price->getValue());
33+
$this->value = min($price->getValue(), $this->value !== false ? $this->value: $price->getValue());
3434
}
3535
}
3636
}

0 commit comments

Comments
 (0)