Magento 自定义属性安装失败
我按照 http://www.magentocommerce.com/wiki 上的教程进行操作/5_-_modules_and_development/0_-_module_development_in_magento/installing_custom_attributes_with_your_module 使用 Magento CE 1.4 逐步使我的模块安装一些自定义属性。我可以在产品编辑页面上看到自定义属性,但每当我尝试保存它们时,我都会收到 SQL 错误,抱怨列“myattrid”不存在。我知道:
- 此列是平面产品表的一部分,确实,没有
- 很多人给出手动创建的建议,但这绕过了自动安装的点
我遵循的教程是否已经过时了?如果是这样,我需要采取哪些额外步骤?
I followed the tutorial at http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/installing_custom_attributes_with_your_module step by step to make my module install a couple of custom attributes, using Magento CE 1.4. I get to see the custom attributes on the product edit page, but whenever I try to save them I get an SQL error complaining that column "myattrid" does not exist. I know that:
- this column is part of the flat product tables and indeed, it is not there
- a lot of people give the advice to create by hand, but this bypasses the point of automatic installation
Is the tutorial I followed outdated? If so, what extra steps do I need to take?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这篇博客文章。你可以尝试一下。
我同意您应该避免手动创建属性,Magento 需要了解许多键、索引和关系,如果您直接访问数据库,这些键、索引和关系可能会被绕过。
哈特哈,
京东
An alternative approach is outlined in this blog post. You could try that.
I agree that you should avoid creating the attributes manually, there are many keys, indexes and relationships that Magento needs to be aware of which might be bypassed if you go straight to the database.
HTH,
JD