Skip to content

Commit 843fa11

Browse files
ENGCOM-1689: fix for Wrong price amount on product page #11717 #15540
- Merge Pull Request #15540 from Veriteworks/magento2:fixPriceFormat - Merged commits: 1. cf05a84 2. 67a2038
2 parents 0ad656d + 67a2038 commit 843fa11

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/internal/Magento/Framework/Locale/Format.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ public function getPriceFormat($localeCode = null, $currencyCode = null)
9999
$currency = $this->_scopeResolver->getScope()->getCurrentCurrency();
100100
}
101101

102-
$formatter = new \NumberFormatter($localeCode, \NumberFormatter::CURRENCY);
102+
$formatter = new \NumberFormatter(
103+
$localeCode . '@currency=' . $currency->getCode(),
104+
\NumberFormatter::CURRENCY
105+
);
103106
$format = $formatter->getPattern();
104107
$decimalSymbol = $formatter->getSymbol(\NumberFormatter::DECIMAL_SEPARATOR_SYMBOL);
105108
$groupSymbol = $formatter->getSymbol(\NumberFormatter::GROUPING_SEPARATOR_SYMBOL);

0 commit comments

Comments
 (0)