Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Best currency by way of reverse DNS


Guest

Recommended Posts

I am thinking of writing a bit of code that will do a reverse DNS and based on the TLD set the currency. Has anyone seen this done / thought of this / done this?

Link to comment
Share on other sites

Aren't there some kind of flags set by the users browser / operating system that will help you tell what country they are in. I believe a number of search engines, amongst others, use this feature.

 

I can't remember how / what and it might just be Windows specific.

 

Jon.

Link to comment
Share on other sites

I am thinking of writing a bit of code that will do a reverse DNS and based on the TLD set the currency.  Has anyone seen this done / thought of this / done this?

 

The idea is dangerous. Reverse lookups can take some seconds, in extreme cases up to 30 seconds or even more. Your customers will run away if they encounter a pageload of >5 seconds. And it causes a lot of processing time and network connections on the server.

 

And it is not needed, btw. We already have a built-in mechanism to find out about the preferred language. If you have defined the use of a default curency per language it will switch language AND currency automagically.

 

HTH

You can't have everything. That's why trains have difficulty crossing oceans, and hippos did not adapt to fly. -- from the OpenBSD mailinglist.

Link to comment
Share on other sites

The language / currency relationship is thin. English is the defacto language for Internet. Take South Africa, the U.K. and the U.S.A. as examples. All 3 countries have English as an official language and each one has their own currency, that is: ZAR, GBP and USD.

 

Do you want everyone to use ZAR then? :wink:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...