Skip to content

Commit

Permalink
Respect currency-conversion in HistoricalPriceBox.php.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-teichmann committed Apr 17, 2023
1 parent 5f2fe94 commit 906fa7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pricing/Render/HistoricalPriceBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct(
public function canShowPrice(): float
{
$product = $this->getSaleableItem();
$historicalPrice = $this->_priceHelper->currency($product->getData('historical_price', false, false));
$historicalPrice = $this->_priceHelper->currency($product->getData('historical_price'), false, false);

return (int) $product->getPriceInfo()->getPrice(FinalPrice::PRICE_CODE)->getValue()
> (int) $historicalPrice
Expand Down

0 comments on commit 906fa7a

Please sign in to comment.