我已經安裝了Magento 1.9.1.0而沒有示例數據,但在管理員中,添加或編輯類別頁面沒有縮略圖圖像字段。我怎樣才能顯示在管理類別提交的縮略圖? Magento類別縮略圖字段未在管理員中顯示
回答
與1.9有同樣的問題,但設法通過手動將屬性直接插入數據庫來解決它。檢查以下三個表格eav_attribute,catalog_eav_attribute,eav_entity_attribute的image
屬性(我的ID爲45),並相應地複製它的縮略圖。希望這會有所幫助。
我通過運行在我的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
您有可能爲@Shijin解釋一點這段代碼嗎?提前致謝。 – 2015-02-19 21:43:53
最簡單的解決方案是激活Mage_XmlConnect模塊,從1.9.1.0開始此模塊默認爲非活動狀態。您可以通過修改
應用程序的/ etc /模塊/ Mage_XmlConnect.xml
變化<active>
標籤從假到真正
不起作用。至少不在Magento 1.9.2.1上 – Paktas 2015-10-25 17:14:59
適用於Magento 1.9.2.2。您可以再次禁用模塊。 – 2016-01-15 14:43:16
- 1. Magento:管理員類別表單不顯示
- 2. 的Magento沒有顯示在管理員
- 3. PDF縮略圖未顯示
- 4. 類別在產品更新時未顯示在magento管理面板中
- 5. Magento管理員:在添加布局後未顯示新塊
- 6. Magento - 管理員字段的默認值
- 7. 縮略圖現在顯示在Django管理列表視圖
- 8. Magento管理員網址顯示404
- 9. 在opencart中顯示category.tpl模塊中的類別縮略圖?
- 10. magento管理頁面不顯示在管理員
- 11. 如何按類別顯示類別縮略圖
- 12. Magento產品圖像不顯示在管理員
- 13. Magento不顯示管理中的所有類別
- 14. Bootstrap縮略圖列表未顯示縮略圖
- 15. 管理類別損壞Magento
- 16. Magento管理類別樹
- 17. Magento類別靜態塊未顯示
- 18. 根據WordPress中的類別顯示發佈的縮略圖?
- 19. Magento - 在銷售/訂單屏幕中顯示縮略圖
- 20. Facebook的縮略圖未顯示
- 21. 未授權顯示的管理員
- 22. Magento管理員類別頁面在PHP 5.4上失敗
- 23. magento onepage checkout管理字段
- 24. Magento - 使用分組產品縮略圖顯示「向上銷售」縮略圖
- 25. 管理magento中的管理員帳戶
- 26. 圖像未顯示在引導程序縮略圖中
- 27. 我想管理magento中的類別
- 28. Magento的獲取要顯示在購物車縮略圖網址
- 29. 如何更改Magento中的產品縮略圖顯示?
- 30. Magento類別不顯示
你找到答案值激活此模塊,我有同樣的問題 – someone 2015-01-04 14:54:33
不是。但爲了獲得縮略圖字段,我只需安裝示例數據,然後截斷產品,類別,訂單和屬性表。通過刪除這些數據和縮略圖字段保持可見 – 2015-01-06 07:20:30
thanx我會嘗試 – someone 2015-01-06 07:48:01