2013-02-25 29 views
2

我试图在Magento CE1.7中强制使用公司名称。我发现许多前端位置进行了更改,但我无法在后端管理面板中找到要修改的相关文件。magento - 在管理屏幕上强制客户的公司

链接在管理控制台: /管理/用户/编辑/ ID/68/...

这里是我已经确定更改相关的前端文件。

\app\design\frontend\base\default\template\checkout\onepage\billing.phtml 
\app\design\frontend\base\default\template\persistent\checkout\onepage\billing.phtml 
\app\design\frontend\base\default\template\customer\form\address.phtml 
\app\design\frontend\base\default\template\customer\address\edit.phtml 
\app\design\frontend\base\default\template\customer\form\register.phtml 
\app\design\frontend\base\default\template\persistent\customer\form\register.phtml 
\app\design\frontend\base\default\template\checkout\onepage\shipping.phtml 

相关链接 - 为前端... TTP://stackoverflow.com/questions/5456794/magento-make-the-field-company-required

+0

您回答了您自己的问题!您是否检查过相关链接问题的接受解决方案? – Kalpesh 2013-02-25 09:39:43

回答

2

你应该通过做这个后端 - 特别是数据库。

管理员 - >客户 - >属性 - >管理客户地址属性将告诉你公司字段。一旦你点击,你可以看到所需的字段,但是因为这是一个系统属性'值要求'字段是已禁用

您可以通过使用开发者工具栏和去除disabeld =“禁用”从选择标签属性,你可以去数据库直接转到表eav_attribute覆盖。然后找属性代码和更改is_required从0到1.

+0

看起来不错,但这是在1.7CE上提供的。我不在这个版本上有Admin-> Customers。 – 2013-02-25 14:11:44

+0

登录到后端,您将看到Customers下拉菜单。 – 2013-02-25 22:14:40

+0

这就是我所看到的:客户 - >管理客户|客户群组在线客户。 EE版本似乎与此功能... http://www.fontis.com.au/blog/magento/manage-customer-attributes – 2013-02-26 00:37:42