phil044 Posted July 25, 2016 Share Posted July 25, 2016 (edited) Hello i’ve got a problem in the header after i upgrade prestashop to 1.6 and install a new theme, i can’t get the top small menu with the phone number in the header, Thanks to help me , i can’t debug this http://www.imprimuzik.com/ Philippe Edited July 25, 2016 by phil044 (see edit history) Link to comment Share on other sites More sharing options...
endriu107 Posted July 25, 2016 Share Posted July 25, 2016 Maybe your new theme didn't have hook displayNav? Link to comment Share on other sites More sharing options...
phil044 Posted July 25, 2016 Author Share Posted July 25, 2016 Hi endriu107 i've just check in the admin, there is no displayNav i Link to comment Share on other sites More sharing options...
endriu107 Posted July 25, 2016 Share Posted July 25, 2016 You need to add in file header.tpl this hook in place where you want to display this hook: {capture name='displayNav'}{hook h='displayNav'}{/capture} {if $smarty.capture.displayNav} <div class="nav"> <div class="container"> <div class="row"> <nav>{$smarty.capture.displayNav}</nav> </div> </div> /div> {/if} Link to comment Share on other sites More sharing options...
phil044 Posted July 25, 2016 Author Share Posted July 25, 2016 i've check my header tpl, This code is already in it (line 109), so it should work!!! Link to comment Share on other sites More sharing options...
endriu107 Posted July 25, 2016 Share Posted July 25, 2016 Check if this hook is not in comment tag {* *}. Link to comment Share on other sites More sharing options...
phil044 Posted July 25, 2016 Author Share Posted July 25, 2016 It is not... Link to comment Share on other sites More sharing options...
phil044 Posted July 25, 2016 Author Share Posted July 25, 2016 May be it's a bug after the update, if i use the default theme it's the same, Link to comment Share on other sites More sharing options...
endriu107 Posted July 25, 2016 Share Posted July 25, 2016 Did you have any active module who can display in this hook? If not try active it, if yes try reinstall this module. Link to comment Share on other sites More sharing options...
phil044 Posted July 25, 2016 Author Share Posted July 25, 2016 (edited) the problem is i don't have "navdisplay" hook in positions page Edited July 25, 2016 by phil044 (see edit history) Link to comment Share on other sites More sharing options...
endriu107 Posted July 26, 2016 Share Posted July 26, 2016 If you have this code in header.tpl and some module are in this hook it supposed to show up, did you try reinstall some modules like blockcontactinfos? Link to comment Share on other sites More sharing options...
phil044 Posted July 26, 2016 Author Share Posted July 26, 2016 I have this code in the header but i don't see Displaynav in POSITIONS, i think no module are in this hook and i have reinstall some modules but no succes. I think this bug come from the update 1.5 to 1.6, so i will reinstall prestashop manualy by ftp Link to comment Share on other sites More sharing options...
SmartDataSoft Posted July 26, 2016 Share Posted July 26, 2016 @phil044 This may happen if module is unhooked. you can try module->position-> top right corner -> transplant module and add your module to displayNav then try Link to comment Share on other sites More sharing options...
phil044 Posted July 26, 2016 Author Share Posted July 26, 2016 Thanks for your help if i transplant a module, there no displayNav in the choice Link to comment Share on other sites More sharing options...
phil044 Posted July 26, 2016 Author Share Posted July 26, 2016 (edited) I've install prestashop with the same theme, when i go in POSITIONS i can see displayNav, so i must be a bug when i upgrade prestashop because displayNav, is missing displayNav missing : http://www.imprimuzik.com/ Fresh new install displayNav OK : http://www.imprimuzik.fr/ Edited July 26, 2016 by phil044 (see edit history) Link to comment Share on other sites More sharing options...
phil044 Posted July 26, 2016 Author Share Posted July 26, 2016 (edited) I've look in the database, the hook displayNav is missing on the .com and the displaynav is present on the .fr i have to add the hook displaynav in the database but i feel this quite risky... Edited July 26, 2016 by phil044 (see edit history) Link to comment Share on other sites More sharing options...
endriu107 Posted July 26, 2016 Share Posted July 26, 2016 In PrestaShop 1.6 this is not necessery because if any module have function displayNav in tamplate supposed to work {hook h='displayNav'}, this is works also with other custom hooks. Link to comment Share on other sites More sharing options...
phil044 Posted July 26, 2016 Author Share Posted July 26, 2016 Problem solved, i add the hook missing in the database thank you to endriu107 and smartdatasoft for their help Phil Link to comment Share on other sites More sharing options...
phil044 Posted July 26, 2016 Author Share Posted July 26, 2016 In PrestaShop 1.6 this is not necessery because if any module have function displayNav in tamplate supposed to work {hook h='displayNav'}, this is works also with other custom hooks. this hook was missing problably during the automatic update to the last version of prestashop 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