Magento-客户地址所在国家/地区下拉菜单问题 [英] Magento - Customer Address Country Dropdown Issue

查看:107
本文介绍了Magento-客户地址所在国家/地区下拉菜单问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Magento CE 1.7.0.2,最近从1.4.2.0升级了.并且在后端中编辑/创建客户地址时,国家/地区下拉字段为空白-没有可供选择的选项.在前端地址下拉菜单中也不起作用.

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.

任何想法都是由什么引起的,我唯一能找到的代码提示是:"this.defaultCountries = [false,false];"在页面上的JS中,而在新的Magento安装(相同版本,相同的默认国家/地区)中显示:this.defaultCountries = ['GB','GB'];

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'];

推荐答案

我们遇到了一个类似的问题,但是在一切运行正常之后,我们的问题才开始发生.

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

我们发现,由于某种原因,在core_config_data表中,出现了一个条目,该条目的路径为通用"(之后没有任何内容,或者也许是"/general/")...

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/")...

要点是,由于它是最后一个条目,因此,Magento将其视为在其构建的core_config中创建(在此例中为覆盖)XML节点通用",实质上是清除了该分支中的所有其他数据. XML对象.

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.

这篇关于Magento-客户地址所在国家/地区下拉菜单问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆