Skip to content

Commit cf05a84

Browse files
committed
fix for Wrong price amount on product page #11717
1 parent 166dd61 commit cf05a84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ 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($localeCode . '@currency=' . $currency->getCode(), \NumberFormatter::CURRENCY);
103103
$format = $formatter->getPattern();
104104
$decimalSymbol = $formatter->getSymbol(\NumberFormatter::DECIMAL_SEPARATOR_SYMBOL);
105105
$groupSymbol = $formatter->getSymbol(\NumberFormatter::GROUPING_SEPARATOR_SYMBOL);

0 commit comments

Comments
 (0)