I'm having problems with showing the countries in my magento website. When you want to give in you're billing address it's required to give in your country. The problem is that the countries are empty :

enter image description here

As you can see the select list is empty. But in my backend I have the following allowed countries:

enter image description here

That's my default config and I use it for the website, nl and fr store:

enter image description here

In my config in my database you can also see it:

INSERT INTO `pp_core_config_data` (`config_id`, `scope`, `scope_id`, `path`, `value`)

When I debug it with xDebug I can see the config variable with an _xml property:

enter image description here

The path of the config value is general/country/allow and the full path (for specific store) is stores/nl/general/country/allow.

But when I check stores/general/ there's only locale and NOT country. What could be the reason for this? I'm really stuck with this and I have no clue what's causing this ... .

I'm using Magento ver. . (Also maybe good to know: this worked on another server, but when we cloned it to our server it doesn't work anymore ..)

  • Just to make it clear. You don't have overrides of this config in Website Scope (Pharmaprofit Website) and/or in Store View Scopes (Francais/Nederlands) – Yiorgos Moschovitis Dec 11 '15 at 10:02
  • No, I always use the default config. – nielsv Dec 11 '15 at 12:59
  • 1
    I've found the answer in this SO topic. – nielsv Dec 12 '15 at 11:47
  • 1
    Then please add the solution as an answer and accept it. – Fabian Schmengler Dec 14 '15 at 8:53

Please goto Current Configuration Scope: Select Default Store View

Now in General - > Countries Options Select

Default Country -> <select your country>
Allow Country   -> <select all>

Select Both CheckBox right side

[X] Use Website [STORE VIEW]

and SAVE CONFIG it you will get you default country selected and you can choose another country from the list.

enter image description here

| improve this answer | |

Just clean core_config_data table for that path something like: delete from core_config_data where path = 'general/country/allow'; then obviously, flush cache. If problem persists you may take a look on the template/block and debug that value.

Are you using some extension there, if so, try to deactivate it?

There is some Javascript involve in this select, so take a look at the browser console too.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.