Skip to content

Commit 3926d59

Browse files
committed
12277-Error-displays-on-category-and-PDP-pages
1 parent 9d0dbb0 commit 3926d59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Model/AbstractDataLayer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ protected function getPrice(Product $product): float
258258
{
259259
$priceInfo = $product->getPriceInfo()->getPrice('final_price')->getAmount();
260260
$price = $priceInfo->getValue();
261-
return $this->formatPrice($price);
261+
return $this->formatPrice((float)$price);
262262
}
263263

264264
/**
@@ -274,7 +274,7 @@ protected function getProductValue($product): float
274274
$value = $priceInfo->getValue();
275275
}
276276

277-
return $this->formatPrice($value);
277+
return $this->formatPrice((float)$value);
278278
}
279279

280280
/**

0 commit comments

Comments
 (0)