Page 1 of 1

Currency formatting bug in email confirmation?

Posted: Mon May 12, 2008 12:37 pm
by danielb
Hey.

When the store is set to use another currency than USD, the email's from the checkout confirmation is still sent with USD formatting. Eg. $249.00 instead of Kr 249,00 (we use Norwegian Kroner - NOK - Kr in our store)

Looks like the methods that's sending the comfirmation email don't check the store settings, but use whatever is set as globalization default for the server/site.



Daniel

Re: Currency formatting bug in email confirmation?

Posted: Tue Jun 24, 2008 12:26 pm
by Logan Rhodehamel
Darn, the default email content is not correct.

If you go to Configure -> Email -> Email Templates you can edit the email content.

In the order notification email, you'll find code like this:

Code: Select all

$orderItem.ExtendedPrice.ToString("C")
The "C" is the problem, it actually should have this:

Code: Select all

$orderItem.ExtendedPrice.ToString("lc")
So if you replace all instances of ("C") with ("lc") you'll get the properly formatted currencies in your email.