diff --git a/src/Entity/DfTools.php b/src/Entity/DfTools.php index 96bc570..d9ba649 100644 --- a/src/Entity/DfTools.php +++ b/src/Entity/DfTools.php @@ -1438,13 +1438,13 @@ public static function getMultiprice($productId, $includeTaxes, $currencies, $va $convertedPrice = \Tools::convertPrice($price, $currency); $convertedOnsalePrice = \Tools::convertPrice($onsale_price, $currency); $currencyCode = $currency['iso_code']; - $pricesMap = ["price" => $convertedPrice]; + $pricesMap = ['price' => $convertedPrice]; if ($convertedPrice != $convertedOnsalePrice) { - $pricesMap["sale_price"] = $convertedOnsalePrice; + $pricesMap['sale_price'] = $convertedOnsalePrice; } - $multiprice[$currencyCode] = $pricesMap; + $multiprice[$currencyCode] = $pricesMap; } } @@ -1469,6 +1469,7 @@ public static function getMultiprice($productId, $includeTaxes, $currencies, $va public static function getFormattedMultiprice($productId, $includeTaxes, $currencies, $variantId = null) { $multiprice = self::getMultiprice($productId, $includeTaxes, $currencies); + return self::formatMultiprice($multiprice); }