Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do we change the default currency on freemarker if we have the desired currencycode in string?

How do I change the default currency in the currency format of a number in freemarker? I only have the three digit currency code in string format.

like image 290
scarecrow Avatar asked Dec 06 '25 04:12

scarecrow


1 Answers

Perhaps don't use the ?string.currency -format at all and do the formatting yourself?

For example...

${user.locale.currencySign} ${price.forLocale(user.locale)} 

..

like image 53
Esko Piirainen Avatar answered Dec 08 '25 17:12

Esko Piirainen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!