Jump to content

Cant add category thumbnails to use it in the menu


vtifu

Recommended Posts

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

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

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

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

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

×
×
  • Create New...