Skip to content

Commit 575e071

Browse files
author
Stanislav Idolov
authored
ENGCOM-2193: [Backport] Fix for Wrong price amount on product page #15909
2 parents b60bb5b + 6ddb760 commit 575e071

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

+4-1
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)