Developer forum

Forum » Dynamicweb 10 » Make Currency Symbol editable or update RON symbol to Lei

Make Currency Symbol editable or update RON symbol to Lei

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,
I see that we don't have the option to edit the Currency Symbol.
We have an issue with our local Currency. The Currency code is RON but the Symbol is Lei.
In DW9, the symbol was correctly set to Lei but now, in DW10, it is set to RON.
I know I can set it directly in the database but I would like to avoid needing to make this change for every new solution we create.
There are various flavors on our market, some use lei some use Lei.
 

Thank you,
Adrian


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Adrian

In Dynamicweb 9 we used isoglobal or something from our database. In DW10 we use the culture info - and the .net says your currency symbol is RON:

https://learn.microsoft.com/en-us/dotnet/api/system.globalization.regioninfo.isocurrencysymbol?view=net-9.0

But I just changed the UI so this field is editable - there is no reason it is not.

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

I am aware that the official information is often misleading and inconsistent. Some are using RON, and some are still using Lei.
If the interface is editable, we should have no problem.

Thank you,
Adrian

   
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Changed this a bit.

The UI is actually doing it 'right' as of now.

You can simply set regional info to nothing selected and setup how things are handled your self. I have updated the explanations of the UI to clarify and add examples instead.

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

That should do it.

Thank you,
Adrian

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,
I went ahead with your suggestion.
It seems to work, except for one thing. The spacing between the price and the Currency symbol.
This is how it was set up in DW9:

 

This is how it is set up in DW10:

But the display looks like this:

Notice there is no space between the value and the symbol/currency although the option was to include spacing.
I believe that this has nothing to do with having a custom option; the behavior is the same for the standard RON currency.
Thank you,
Adrian

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Thank you!

Adrian

 

You must be logged in to post in the forum