www.webdeveloper.com
Results 1 to 4 of 4

Thread: Website Currency Change

  1. #1
    Join Date
    Jul 2014
    Posts
    3

    Website Currency Change

    Hello,

    I was wondering if any of you guys could point me in the right direction for this.

    At the moment I run a website which offers the pricing in USD, GBP and EUR. But they go to different directory's at the moment e.g. /USD/pagename /GBP/pagename etc

    I was wondering if there was a bit of code released so it'd be like domain.com/?currency=usd or something

    Thank you.

  2. #2
    Join Date
    Jul 2013
    Location
    Voorheesville NY USA
    Posts
    857
    Such a vague question. Do you really think someone can possibly understand your situation from this post? You are the one manipulating the paths and the urls - why ask us?

  3. #3
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,537
    Well, there are many variables in play here (no pun intended), but such things are often handled on the web server side via url rewriting, e.g. http://httpd.apache.org/docs/current...d_rewrite.html
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  4. #4
    Join Date
    Jul 2014
    Posts
    3
    Quote Originally Posted by ginerjm View Post
    Such a vague question. Do you really think someone can possibly understand your situation from this post? You are the one manipulating the paths and the urls - why ask us?
    Sorry I thought it made sense,

    I am looking for some code which will make the website instead of going to use /USD/ use ?curr=usd (I don't mind what it says in front of "=usd")
    Yourdomain.com/USD/page will be yourdomain.com/page?curr=usd (it will rely on cookies a little to remember the currency) I'd prefer it to use HTML instead of the database for the currency changer so I can manually do it instead of how WHMCS does it. Actually WHMCS is a good preview of it when you hit order on one of their products you can choose the currencies setup.

    Quote Originally Posted by NogDog View Post
    Well, there are many variables in play here (no pun intended), but such things are often handled on the web server side via url rewriting, e.g. http://httpd.apache.org/docs/current...d_rewrite.html
    I've got some url rewriting already but I'll check it out thanks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles