2014-12-03 99 views
7

我已经安装了Magento 1.9.1.0而没有示例数据,但在管理员中,添加或编辑类别页面没有缩略图图像字段。我怎样才能显示在管理类别提交的缩略图? enter image description hereMagento类别缩略图字段未在管理员中显示

+0

你找到答案值激活此模块,我有同样的问题 – someone 2015-01-04 14:54:33

+0

不是。但为了获得缩略图字段,我只需安装示例数据,然后截断产品,类别,订单和属性表。通过删除这些数据和缩略图字段保持可见 – 2015-01-06 07:20:30

+0

thanx我会尝试 – someone 2015-01-06 07:48:01

回答

1

与1.9有同样的问题,但设法通过手动将属性直接插入数据库来解决它。检查以下三个表格eav_attributecatalog_eav_attributeeav_entity_attributeimage属性(我的ID为45),并相应地复制它的缩略图。希望这会有所帮助。

3

我通过运行在我的phpMyAdmin的以下查询解决此问题,

1)

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(140, 3, 'thumbnail', NULL, 
'catalog/category_attribute_backend_image', 'varchar', NULL, NULL, 'image', 'Thumbnail 
Image', NULL, NULL, 0, 0, NULL, 0, NULL); 

2)

INSERT INTO `catalog_eav_attribute` (`attribute_id`, `frontend_input_renderer`, 
`is_global`, `is_visible`, `is_searchable`, `is_filterable`, `is_comparable`, 
`is_visible_on_front`, `is_html_allowed_on_front`, `is_used_for_price_rules`, 
`is_filterable_in_search`, `used_in_product_listing`, `used_for_sort_by`, 
`is_configurable`, `apply_to`, `is_visible_in_advanced_search`, `position`, 
`is_wysiwyg_enabled`, `is_used_for_promo_rules`) VALUES 
(140, NULL, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, NULL, 0, 0, 0, 0); 

3)

INSERT INTO `eav_entity_attribute` (`entity_attribute_id`, `entity_type_id`, 
`attribute_set_id`, `attribute_group_id`, `attribute_id`, `sort_order`) 
VALUES (337, 3, 3, 4, 140, 3); 

在这里,我我使用attribute_id作为140,在这些查询中使用一个唯一的值作为ID

+0

您有可能为@Shijin解释一点这段代码吗?提前致谢。 – 2015-02-19 21:43:53

3

最简单的解决方案是激活Mage_XmlConnect模块,从1.9.1.0开始此模块默认为非活动状态。您可以通过修改

应用程序的/ etc /模块/ Mage_XmlConnect.xml

变化<active>标签从真正

+0

不起作用。至少不在Magento 1.9.2.1上 – Paktas 2015-10-25 17:14:59

+0

适用于Magento 1.9.2.2。您可以再次禁用模块。 – 2016-01-15 14:43:16

相关问题