Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 5 of 5

Thread: Get current localization?

  1. #1
    kernel64 is offline Member
    Join Date
    Mar 2009
    Posts
    45

    Default Get current localization?

    hello, is there a token or function, which gets a string of the currency like en-US or de-DE ???

  2. #2
    cdub is offline Junior Member
    Join Date
    Jan 2009
    Posts
    17

    Default

    This is in the System node during runtime at:

    <root>
    <System>
    ...
    <LocaleSetting>en-US</LocaleSetting>


    You can get it in a XMLpackage with:

    <xsl:value-of select="/root/System/LocaleSetting" />

  3. #3
    lkkol is offline Member
    Join Date
    Mar 2009
    Posts
    54

    Default You can also get it programatically

    Possibly a more convenient way to acquire the current customer localization setting is to use the Locale Setting property of the customer class:
    Customer.Current.LocaleSetting

  4. #4
    logoscorp is offline Member
    Join Date
    Aug 2010
    Posts
    35

    Default working from Venezuela

    Greetings .... I'm working from Venezuela and I need that money to be used is the bolivar as I can do to change the currency symbol please i need your big help

  5. #5
    kaezr is offline Member
    Join Date
    May 2009
    Posts
    40

    Default

    Quote Originally Posted by kernel64 View Post
    hello, is there a token or function, which gets a string of the currency like en-US or de-DE ???
    I was looking for the same thing...

    in the template page, you'll use a token
    Code:
    (!LOCALESETTING!) - Returns the current locale of the customer viewing the page
    in aspx.cs pages you can use
    Code:
    ThisCustomer.LocaleSetting
    in the xml packages you can use
    Code:
    <xsl:param name="LocaleSetting" select="/root/Runtime/LocaleSetting" />
    Running AspDotNetStorefront ML 8.0.1.4