magento 将自定义输入字段添加到管理中的客户帐户表单中
我正在尝试将自定义输入字段添加到管理员中客户的帐户信息选项卡中。我已经成功地在 eav 表中为我的输入创建了自定义属性,但未能成功找到如何使我的输入显示出来。好奇有人有关于如何做到这一点的好资源吗?
I am trying to add a custom input field to the account information tab of a customer in admin. i have successfully been able to create a custom attribute in the eav table for my input, but have been unsuccessful in finding how to make my input show up. curious of anyone has any good resources on how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
上面的链接不再有效。我在 http://www.excellencemagentoblog.com/customer-registration 找到了更好的解释-fields-magento1-6 。如果您只执行第一步,您将只能在管理中看到添加的字段。
The above link doesn't work anymore. I found a better explanation at http://www.excellencemagentoblog.com/customer-registration-fields-magento1-6 . If you just do the first steps you will only have the added fields in the admin.
最快的方法是创建一个 php 文件并通过浏览器访问它,将以下内容添加到文件中。
The fastest way is to create a php file and access it through browser add the following content to file.
您必须告诉该属性其使用的形式:
为了方便起见,可以将其放入标准 Magento 升级脚本中(通常与最初创建该属性的脚本相同,或者紧随其后的脚本)。
You have to tell the attribute which forms it's used in:
This can be put in a standard Magento upgrade script for convenience (usually the same script that originally created the attribute, or the one right after it).