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

Commit 4cb997a

Browse files
committed
Fixed add to wishlist issue on product price 0
1 parent f947cad commit 4cb997a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ class RegularPrice extends AbstractPrice implements BasePriceProviderInterface
2222
/**
2323
* Get price value
2424
*
25-
* @return float|bool
25+
* @return float
2626
*/
2727
public function getValue()
2828
{
2929
if ($this->value === null) {
3030
$price = $this->product->getPrice();
3131
$priceInCurrentCurrency = $this->priceCurrency->convertAndRound($price);
32-
$this->value = $priceInCurrentCurrency ? floatval($priceInCurrentCurrency) : false;
32+
$this->value = $priceInCurrentCurrency ? floatval($priceInCurrentCurrency) : 0;
3333
}
3434
return $this->value;
3535
}

0 commit comments

Comments
 (0)