Skip to content

Commit

Permalink
ENGCOM-2185: Issue in adding the wishlist of 'zero price' product #16537
Browse files Browse the repository at this point in the history


 - Merge Pull Request #16537 from gelanivishal/magento2:patch-4
 - Merged commits:
   1. 4cb997a
  • Loading branch information
magento-engcom-team committed Jul 4, 2018
2 parents d7aafe9 + 4cb997a commit 4ed8614
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Catalog/Pricing/Price/RegularPrice.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ class RegularPrice extends AbstractPrice implements BasePriceProviderInterface
/**
* Get price value
*
* @return float|bool
* @return float
*/
public function getValue()
{
if ($this->value === null) {
$price = $this->product->getPrice();
$priceInCurrentCurrency = $this->priceCurrency->convertAndRound($price);
$this->value = $priceInCurrentCurrency ? floatval($priceInCurrentCurrency) : false;
$this->value = $priceInCurrentCurrency ? floatval($priceInCurrentCurrency) : 0;
}
return $this->value;
}
Expand Down

0 comments on commit 4ed8614

Please sign in to comment.