Magento - Customer Address Country Dropdown Issue

寵の児 提交于 2019-12-04 08:43:43

问题


I'm using Magento CE 1.7.0.2, having recently upgraded from 1.4.2.0. And when editing/creating a customer address in the backend, the country dropdown field is blank - with no possible options to select. Neither does it work on the frontend address dropdown.

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


回答1:


We ran across a similar issue, but ours started happening after everything had been functioning properly.

What we found was that in the core_config_data table, for some reason, there came to be an entry in there with a path of "general" (with nothing after it, or maybe "/general/")...

Point is, since it was one of the last entries, Magento treats that as create (in this case overwrite) the XML node "general" in the core_config that it builds, essentially wiping out all other data in that branch of the XML object.

If you find this entry in the table, you should backup the table (always be safe), and remove that entry. Then clear your cache, and you should find that things are back to normal.

We never did identify HOW the entry came to exist in the table, but that was the fix for us.




回答2:


Following your lead I made sure that all countries that I needed were available in both the default and website scope and the options appeared in the admin.




回答3:


You need to go in System > Configuration > General > Allow Countries and include the countries you want to show in admin. Then the drop down menu should appear correctly for the countries you have picked.

I hope it solves your problem.




回答4:


Search on table 'core_config_data' in field 'path' remove a row with value 'general' without anything more, if it exist. then It will works



来源:https://stackoverflow.com/questions/12055241/magento-customer-address-country-dropdown-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!