From 906fa7a81dfb96b382a9018b4ada0d570c16c379 Mon Sep 17 00:00:00 2001 From: Stefan Teichmann Date: Mon, 17 Apr 2023 14:09:42 +0200 Subject: [PATCH] Respect currency-conversion in HistoricalPriceBox.php. Solves macopedia/magento2-omnibusdirective#4 --- Pricing/Render/HistoricalPriceBox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pricing/Render/HistoricalPriceBox.php b/Pricing/Render/HistoricalPriceBox.php index 5983128..cbe0722 100644 --- a/Pricing/Render/HistoricalPriceBox.php +++ b/Pricing/Render/HistoricalPriceBox.php @@ -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