HomeHome Product Discus... Product Discus...SmithCartSmithCartIncorrect display format of Euro currencyIncorrect display format of Euro currency
Previous
 
Next
New Post
5/22/2010 5:19 AM
 

Hi,

I'm in Ireland where we write prices are €00.00 but the Cart (or possibly DNN) are displaying then as 00,00 €. How can I change this?

I have already altered the globalization locculture in web.config to en-IE. This isn't a deal breaker (as I'm evaluating Smith Cart with a view to going live in 10 days) but it is very annoying (particularly to someone who works in software localization).

Thanks,

Jeff

 
New Post
5/22/2010 11:22 AM
 

The currency format in the cart is set using the following line of code:

System.Globalization.NumberFormatInfo currencyFormat = new System.Globalization.CultureInfo(StoreSettings.StoreCurrency).NumberFormat;

Where "StoreSettings.StoreCurrency" is one of the following options you configure in the cart admin settings:

<asp:DropDownList runat="server" ID="ddlStoreCurrency" Width="200px" >
<asp:ListItem Value="en-US" Text="United States Dollar - $" />
<asp:ListItem Value="en-gb" Text="UK GBP - £" />
<asp:ListItem Value="fr-FR" Text="Euro - €" />
<asp:ListItem Value="en-za" Text="South Africa Rand - R" />
<asp:ListItem Value="en-za" Text="South Africa Rand - R" />
<asp:ListItem Value="zh-cn" Text="China" />
<asp:ListItem Value="da-DK" Text="Danish" />
</asp:DropDownList>

If you open up settings.ascx located in your \desktopmodules\smith.buynow folder and add the following list option to the currency dropdown it should give you what your looking for:

<asp:ListItem Value="en-IE" Text="Euro Ireland - €" />

Originally the cart used the localization setup in the web.config and server to set currency but alot of people had difficulty localizing their servers correctly especially if they were using shared hosting and the hosting company was in a different country so we created a currency setting in the cart admin settings where you could set the currency you wanted in the cart.


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
5/23/2010 6:14 AM
 

Hi Dave,

That's exactly what I was looking for. Thanks very much for the quick reply; that is 1st class support!

Cheers,

Jeff

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartIncorrect display format of Euro currencyIncorrect display format of Euro currency