Calling Developers!
We are reenergizing our code contribution process! Learn More

Currency symbol is not changing

vikram.bishnoi
vikram.bishnoi Spryker Solution Partner Posts: 14 🧑🏻‍🚀 - Cadet

Hi

I am trying to update the currency symbol from A$ to $. have uodated the same in currency.csv but it is not working. Please suggest.

Thanks

Answers

  • Alberto Reyer
    Alberto Reyer Lead Spryker Solution Architect / Technical Director Posts: 690 🪐 - Explorer
  • vikram.bishnoi
    vikram.bishnoi Spryker Solution Partner Posts: 14 🧑🏻‍🚀 - Cadet

    Hi,

    Currency selection is fine, but we want to change the SYMBOL of the same which is not reflecting.

    Thanks

  • Alberto Reyer
    Alberto Reyer Lead Spryker Solution Architect / Technical Director Posts: 690 🪐 - Explorer
    edited August 2023

    The currency symbols Sprykers uses are defined by symfony (https://github.com/symfony/intl/tree/6.3/Resources/data/currencies).

    As overwriting the ressources from symfony is pretty hard the easier way is to overwrite the number formatter to use the correct symbol you want to have in \Spryker\Shared\Money\Formatter\IntlMoneyFormatter\IntlMoneyFormatterWithCurrency::getNumberFormatter