antomatic Posted January 7, 2014 Share Posted January 7, 2014 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 More sharing options...
vekia Posted January 7, 2014 Share Posted January 7, 2014 hello what your query returns? i suppose that array probably, can you please check it? Link to comment Share on other sites More sharing options...
antomatic Posted January 7, 2014 Author Share Posted January 7, 2014 Thanks vekia for reply, but I solved this problem out in the easiest, dumbiest and most-inapropiate way. After connection to DB in classic PHP way I can operate with more friendly for me SQL queries... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now