Jump to content

Add icons to blocktopmenu


Recommended Posts

Hello everyone.

 

I need to add some icons to dropdown list at blocktopmenu module. Firstly I created additional column in ps_category_lang table to hold the links to the .png's files, and now as I suppose I need to put some modification in blocktopmenu.php file.

 

Near #642 line I put following code:

$menu_image = Db::getInstance()->Execute('SELECT * FROM ps_category_lang WHERE id_category = '.(int)$id_category.'');
$this->_menu .= '<img src="'.$menu_image['menu_icon'].'" />';

but unfortunatelly images didn't appears. It's my first shop with Prestashop, so I'm weak at this moment with Smarty's syntax. Can anyone help me with this (I believe) small problem? Many thanks in advance!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...