Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2002
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Here's an interesting one !

    Hi,


    Situation:

    Shopping cart where user can select a currency to view prices in.


    Issue:

    How to set it so that the user will see this currency for all pages. And do this with as little code as posible.


    Current Solution Used:

    Have value hidden "<span>" tag and show it when asked. To keep settings alive, write/read cookie for LCID. So far, only fixed types allowed ie.(CAD vs. USD).


    Note:

    Some solutions like OANDA have code that adjusts the browser settings...that is what I heard, I don't know how to actually do this, other than formatting using SetLocale()...

    Hummm...



  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Provo, UT
    Posts
    142
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You are using cookies right? Why don't you cookie the currency and then in a seperate .js file write a script that retrieves the currency and then adds it to whatever the function is called. Then include that script on the top of all your pages and call the function when needed. Maybe you could do a stylesheet or an XML document to hold the currency values. Just Ideas. Seems like fun project. Good luck.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •