Skip to content

Commit

Permalink
Fixing php style
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar Gomez committed Nov 18, 2024
1 parent b2deab5 commit c82c679
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Entity/DfTools.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand All @@ -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);
}

Expand Down

0 comments on commit c82c679

Please sign in to comment.