> ## Content Index
> Fetch the complete content index at: https://blog.tsd.digital/llms.txt
> Use this file to discover other available public pages before exploring further.

# Output the currency symbol in uCommerce
- URL: https://blog.tsd.digital/output-the-currency-symbol-in-ucommerce/
- Published: 2011-03-09T17:06:12.000Z
- Updated: 2011-03-09T17:06:12.000Z
- Author: Tim Gaunt
- Tags: e-commerce, Ucommerce, Umbraco, XSLT, The Site Doctor, #Import 2025-04-01 05:37, Useful Script

![currency-trading[1]](https://storage.ghost.io/c/64/5b/645b11c2-b436-444c-a523-58dca4ca7bd8/content/images/tim/images/Format-the-currency_97EB/currency-trading1.jpg)

One thing that's always bugged me about [uCommerce](http://www.ucommerce.dk/?ref=blog.tsd.digital) is the way the prices are displayed (using the not so inviting ISO codes), this is a simple switch statement to output the (prettier) HTML symbol instead. 

<xsl:choose> <xsl:when test="@currency = 'GBP'"> <xsl:text disable-output-escaping="yes">&amp;pound;</xsl:text> </xsl:when> <xsl:when test="@currency = 'EUR'"> <xsl:text disable-output-escaping="yes">&amp;euro;</xsl:text> </xsl:when> <xsl:when test="@currency = 'YEN'"> <xsl:text disable-output-escaping="yes">&amp;yen;</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text disable-output-escaping="yes">$</xsl:text> </xsl:otherwise> </xsl:choose>