【发布时间】:2011-06-23 09:26:51
【问题描述】:
如何在 magento 中为类别添加属性?
我已经阅读了一些教程,他们说只需插入两条记录,但这不起作用 已经改变了很多并使用了这些值但仍然没有结果
每次更改后我都清除了缓存,所以这不是问题
我正在使用 magento 1.5 和平面表
插入下一个查询并使用值进行测试
INSERT INTO `eav_attribute`
(
`attribute_id`,
`entity_type_id`,
`attribute_code`,
`attribute_model`,
`backend_model`,
`backend_type`,
`backend_table`,
`frontend_model`,
`frontend_input`,
`frontend_label`,
`frontend_class`,
`source_model`,
`is_required`,
`is_user_defined`,
`default_value`,
`is_unique`,
`note`
)
VALUES
(
158,
3,
'uitslag',
NULL,
'',
'varchar',
'',
'',
'text',
'Uitslag',
'',
'',
1,
0,
'',
0,
''
);
和
INSERT INTO `eav_entity_attribute`
(
`entity_attribute_id`,
`entity_type_id`,
`attribute_set_id`,
`attribute_group_id`,
`attribute_id`,
`sort_order`
)
VALUES
(
158,
3,
3,
3,
158,
61
);
谁有想法?
提前致谢
【问题讨论】:
-
嗯,catalog_category_entity* 表呢?
标签: php sql magento attributes categories