Developer forum

Forum » Ecommerce - Standard features » Setting the Currency format for multiple languages

Setting the Currency format for multiple languages

Kosta Zigouris
Reply

So, I have run into bit of a problem with setting a currency.
it goes as follow I have an English(master) and a German language on the site.
the format I set for the English language is $###. But I want to set the format to ###$ on the German language.
Is this possible or do I need to make a new currency just to set it to the right format for the other language?


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

It is the currency that controls the format - so that is not possible without creating multiple currencies. And you cannot have multiple currencies with the same currency code in DW.

So a limitation.

A workaround is to render your prices with ToString on the current culture

value.ToString("C", CultureInfo.CurrentCulture)

On the website settings you set the culture for that website and that culture is set on CurrentCulture.

All the places where Dynamicweb renders the price, you have the exact double value available and can override.

Votes for this answer: 1

 

You must be logged in to post in the forum