vtifu Posted November 2, 2014 Share Posted November 2, 2014 I dont have thumbails box to upload image to see it in my top Menu. Any help would be appreciated.. The kite image is for the normal category thumbnail to display in the subcategories ? Link to comment Share on other sites More sharing options...
NemoPS Posted November 3, 2014 Share Posted November 3, 2014 Exact ps version? You can try grabbing the AdminCategoriesController.php file from a clean package of the same version and replace yours in controllers/admin. Using any override? Link to comment Share on other sites More sharing options...
vtifu Posted November 3, 2014 Author Share Posted November 3, 2014 PS 1.6.0.6 This problem start to appear since I've done a clean database I think. Clean all categories and products To start fresh. template is coming template monster installation by template tuning some images was there in the top menu but got removed when I've clean all categories. I ve never change or modify AdminCategoriesController.php I did only functional Link to comment Share on other sites More sharing options...
vtifu Posted November 3, 2014 Author Share Posted November 3, 2014 AdminCategoriesController.php Somebody else experience the same problem ? I need to compare the original 1.6.0.6 AdminCategoriesController.php and the one installed on my server ? I've verified on version 1.6.0.5 and it's working correctly. Would be great to have image in my top menu Link to comment Share on other sites More sharing options...
vtifu Posted November 3, 2014 Author Share Posted November 3, 2014 Great tx, I've found it didn't know exactly what I've did but it worked. There is a way to make it interactive so that we click directly on the image to go to the category ? Link to comment Share on other sites More sharing options...
vekia Posted November 3, 2014 Share Posted November 3, 2014 I dont have thumbails box to upload image to see it in my top Menu. Any help would be appreciated.. The kite image is for the normal category thumbnail to display in the subcategories ? thumbnail field is available only for "main" cateogries it's not possible to upload thumbs for subcategories. perhaps this is the main case? Link to comment Share on other sites More sharing options...
vtifu Posted November 3, 2014 Author Share Posted November 3, 2014 Yeah that was the case .. But Im asking if I can have a feature to be able to click directly on the thumbs and go to my category directly Now it's only a static image in my menu thanks for the help bahookakitesurf.com Link to comment Share on other sites More sharing options...
NemoPS Posted November 5, 2014 Share Posted November 5, 2014 Well yeah you can, but you need to edit the menu when it's generated, thus modify blocktopmenu.php (it might be a bit tricky to identify the spot, should be this one though $html .= '<li class="category-thumbnail">'; foreach ($files as $file) if (preg_match('/^'.$category['id_category'].'-([0-9])?_thumb.jpg/i', $file) === 1) $html .= '<div><img src="'.$this->context->link->getMediaLink(_THEME_CAT_DIR_.$file) .'" alt="'.Tools::SafeOutput($category['name']).'" title="' .Tools::SafeOutput($category['name']).'" class="imgm" /></div>'; $html .= '</li>'; Link to comment Share on other sites More sharing options...
Recommended Posts