We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 04b203f + 4ed8614 commit 328907eCopy full SHA for 328907e
app/code/Magento/Catalog/Pricing/Price/RegularPrice.php
@@ -22,14 +22,14 @@ class RegularPrice extends AbstractPrice implements BasePriceProviderInterface
22
/**
23
* Get price value
24
*
25
- * @return float|bool
+ * @return float
26
*/
27
public function getValue()
28
{
29
if ($this->value === null) {
30
$price = $this->product->getPrice();
31
$priceInCurrentCurrency = $this->priceCurrency->convertAndRound($price);
32
- $this->value = $priceInCurrentCurrency ? floatval($priceInCurrentCurrency) : false;
+ $this->value = $priceInCurrentCurrency ? floatval($priceInCurrentCurrency) : 0;
33
}
34
return $this->value;
35
0 commit comments