2014-12-03 106 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