Skip to content

Commit

Permalink
ENGCOM-1689: fix for Wrong price amount on product page #11717 #15540
Browse files Browse the repository at this point in the history
 - Merge Pull Request #15540 from Veriteworks/magento2:fixPriceFormat
 - Merged commits:
   1. cf05a84
   2. 67a2038
  • Loading branch information
magento-engcom-team committed Jun 5, 2018
2 parents 0ad656d + 67a2038 commit 843fa11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/internal/Magento/Framework/Locale/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ public function getPriceFormat($localeCode = null, $currencyCode = null)
$currency = $this->_scopeResolver->getScope()->getCurrentCurrency();
}

$formatter = new \NumberFormatter($localeCode, \NumberFormatter::CURRENCY);
$formatter = new \NumberFormatter(
$localeCode . '@currency=' . $currency->getCode(),
\NumberFormatter::CURRENCY
);
$format = $formatter->getPattern();
$decimalSymbol = $formatter->getSymbol(\NumberFormatter::DECIMAL_SEPARATOR_SYMBOL);
$groupSymbol = $formatter->getSymbol(\NumberFormatter::GROUPING_SEPARATOR_SYMBOL);
Expand Down

0 comments on commit 843fa11

Please sign in to comment.