Jump to content

Manufacturer list in Top menu


alexmafia

Recommended Posts

I've 2 issues that i couldn't fix regarding the Manufacturer list in the blocktopmenu.

 

1. When i click on Manufacturers in the topmenu it should open a page listing all manufacturers i have, but it also says there is no manufacturer.

 

2. I'd love to change the submenu in the manufacturer to manufacturers logos instead of text.

 

 

Anyone can advice me please.

 

 

thanks 

Link to comment
Share on other sites

1. what is the link you get? Is it the actual manufacturer list page? Many users have reported the same issue lately.

2. Try editing this

				case 'ALLMAN':
					$link = new Link;
					$this->_menu .= '<li><a href="'.$link->getPageLink('manufacturer').'" title="'.$this->l('All manufacturers').'">'.$this->l('All manufacturers').'</a><ul>'.PHP_EOL;
					$manufacturers = Manufacturer::getManufacturers();
					foreach ($manufacturers as $key => $manufacturer)
						$this->_menu .= '<li><a href="'.$link->getManufacturerLink((int)$manufacturer['id_manufacturer'], $manufacturer['link_rewrite']).'" title="'.Tools::safeOutput($manufacturer['name']).'">'.Tools::safeOutput($manufacturer['name']).'</a></li>'.PHP_EOL;
					$this->_menu .= '</ul>';
					break;

About line 490 of blocktopmenu.php. Instead of grabbing the text like this

 

Tools::safeOutput($manufacturer['name'])

 

Use an img tag and point it to

 

_PS_IMG_DIR_ . 'm/'.$manufacturer['id_manufacturer'].'.jpg'

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...