Jump to content

Currency & language depending on IP address


Recommended Posts

Wawooo fast relpies. I have a shop in Denmark and sell to Swedish and Norwegen customers. When they enter the shop they need to change language and currency and that may scare them away. There is a web service that recognises IP address and returns a contry code. If possible according to the country code the langaue and the currency will adjust automaticaly. Hope this explanation is more accurate.

ThanX so much

Link to comment
Share on other sites

I've set up such a website once and many of the visitors compained about this setup.
I changed it to the following setup:

A better way of doing so is using the language of the browser/pc from your visitors.
This would mean that you need 4 languages instead because visitors from these 3 country's using an English OS/Browser would get the English language and would only have to choose their own currency.

Link to comment
Share on other sites

Databases for geolocation according to the IP address take at least 25mo, so I hope you've got a good MySQL server :)


Not a problem here, if you have any solution, I'm your man. ;)
Link to comment
Share on other sites

Thank you TropischBruin for your comments.

Could you please explain / send codes, so my webshop will have the fetures you described. Custommers entering a page with a language they can not read and a currency that is not thiers will most probably click away.

Apreiciate your efforts

Dan

Link to comment
Share on other sites

Thank you TropischBruin for your comments.

Could you please explain / send codes, so my webshop will have the fetures you described. Custommers entering a page with a language they can not read and a currency that is not thiers will most probably click away.

Apreiciate your efforts

Dan


The shop I used it for was based on osCommerce.
osCommerce has already an language-based header setup which can display the shop in the language of the browser or the default shop language if the browser language is not recognize.
I'm not sure if PS has this setup and therefore I have no idea what the code should be.
Link to comment
Share on other sites

  • 3 weeks later...

Hi:
We are now moving from Oscommerce.

We found a big problem Prestashop not detecting visitor's browser language as we have clients world around.

We solved currency detection based on ip with a external software, but we have not achieved to change language.
This is solved in Oscommerce by deffault by detecting the browsing language. So, if visitors language is not included in our shop, it jumps to deffault's. This is the most accurate way to do it.


Our shop is shown in 5 different languages and would be great to find a solution.

A real pity not getting this problem solved.

Thanks for this great soft.

Link to comment
Share on other sites

  • 2 months later...
  • 1 year later...

I have made a solution for the language problem. But I do not know if it works fine at all.

The purpose of the module is to detect the vistor's language.

So, assuming you have installed en, fr, es and pt, with default language pt:

1. If a visitor who use english for the browser's language, en will be automatically selected.
2. If the visitor's language, eg. german - de, is not installed, the default language - pt - is selected or a similar.
3. If you do use a variant of a main language as default, it can be selected to the visitor.
3. Also, a variant language, but not default can be used, instead the main language.

Is it clear.. lol If someone wants to try it, i can post it here to download.

Link to comment
Share on other sites

My module is very simple, it does not detect the IP address, but the language of the browser's user. In some cases, the language detected does not match with the language installed on PrestaShop because it is a variant, like mx (mexican spanish) from es (spanish). I tryed to redirect the user to that variant language, or to another similar installed.

Try it, I hope it works fine. No donation needed.

langdetect.zip

Link to comment
Share on other sites

No my language is Dutch.
So when somebody visit my site, the have choice about 3 languages: nl,fr,en.

But when a dutch customer visit the site, it displays in the English language because that's is the default in internet explorer.
So the module from tomeg does only work for my problem I think.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...