Jump to content

[Solved] Standard country not working


Recommended Posts

In my Prestashop backoffice menu I have set at Localisation->Localisation that the Netherlands is my standard country.

 

Yet when I browse in my shop without being logged in I see the prices excl. VAT. And when I want to registrate the United States is shown as the default option for my country. 

 

Why is this not working as it should?

 

I am using PS 1.6.1

Edited by musicmaster (see edit history)
Link to comment
Share on other sites

I did some research myself. When not logged in the country is determined by the function getCountry() in the file classes\Tools.php.

 

The method used is rather peculiar: it asks the pc of the user what languages he it accepts (this is $_SERVER['HTTP_ACCEPT_LANGUAGE']). Then it searches for the first country for the first language mentioned. 

 

This is the consequence of some switch in Prestashop that says that it must detect the country instead of taking the default. I couldn't find it in the backoffice so instead I switched the flag in the configuration table (PS_DETECT_COUNTRY). I am puzzled why it was on by default.

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...