Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magento category thumbnail field not shown in admin

I have installed Magento 1.9.1.0 without sample data but in admin, add or edit category page have no thumbnail image field. How can I show thumbnail filed in admin for category? enter image description here

like image 573
Muhammad Awais Avatar asked Dec 03 '14 05:12

Muhammad Awais


3 Answers

I resolve this issue via running the following queries in my 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);

Here i am using attribute_id as 140,use an id for this in these queries by a unique value

like image 72
Shijin TR Avatar answered Sep 21 '22 04:09

Shijin TR


Easiest of solutions is to activate Mage_XmlConnect module, from 1.9.1.0 this module is inactive by default. You can activate this module by modifying

app/etc/modules/Mage_XmlConnect.xml

change the value of <active> tag from false to true

like image 39
M. Amir Ul Amin Avatar answered Sep 21 '22 04:09

M. Amir Ul Amin


Had the same issue with 1.9, but managed to solve it by manually insert the attribute directly into DB. Check the following 3 tables eav_attribute , catalog_eav_attribute , eav_entity_attribute for the image attribute (mine has the id 45) and duplicate it accordingly to thumbnail. Hope this will help.

like image 40
Bogdan S. Avatar answered Sep 20 '22 04:09

Bogdan S.