Magento - client dropdown list issue

I am using Magento CE 1.7.0.2, recently updated from 1.4.2.0. And when editing / creating a customer address in the backend, the field of the country drop-down list is empty - without a choice. It also does not work with a drop-down list of the external interface.

Any ideas what caused this, the only code tip I could find was: "this.defaultCountries = [false, false];" in JS on the page, whereas on a new Magento installation (same version, same country by default) it shows: this.defaultCountries = ['GB', 'GB'];

+4
source share
4 answers

We faced a similar problem, but ours began to happen after everything was functioning properly.

What we found out is that for some reason a record appeared in the core_config_data table where there is a path "general" (without anything after it or maybe "/ general /") ...

The point, since it was one of the last entries, Magento sees this as creating (in this case, rewriting) the XML node "general" in core_config, which it builds, essentially destroying all other data in this branch of the XML object.

If you find this entry in the table, you must backup the table (always be safe) and delete this entry. Then clear the cache and you need to make sure that everything is back to normal.

We never determined HOW the record appeared in the table, but this was a fix for us.

+22
source

Following your example, I made sure that all the countries I needed were available both by default and on websites, and the options appeared in the administrator.

+2
source

You need to go to System> Configuration> General> Allow countries and enable the countries that you want to show in admin. Then the drop down menu should look right for the selected countries.

I hope it solves your problem.

0
source

A search in the table "core_config_data" in the field "path" deletes the row with the value "general" without any additional if it exists. then it will work

0
source

All Articles