espacious Posted December 12, 2019 Share Posted December 12, 2019 (edited) Hi, in Prestashop 1.6 i had some "promo" pages made in .php and i was able to "insert" the header and footer in this way: $font=new FrontController(); $font->setMedia(); $font->displayHeader(); <footer> <?php $font->displayFooter(); ?> </footer> Now i migrated some sites to 1.7.6 and the footer is not displayed anymore, neither the header. I wrote a "static" footer.php and header.php and did: <?php include('somefolder/footer.php'); <- this is working but it's "static" i mean, if i change sth. in the menu i have always to go to header.php and change manualy those things. How can i include header and footer in my .php file like in 1.6 ? I know it would be better to write a module but this is not possible at the moment due to lack of time. Thanks. Edited December 12, 2019 by espacious (see edit history) Link to comment Share on other sites More sharing options...
Daresh Posted December 13, 2019 Share Posted December 13, 2019 Do you have .tpl files for your pages? If yes extending the layout.tpl there should do the job. Link to comment Share on other sites More sharing options...
espacious Posted December 13, 2019 Author Share Posted December 13, 2019 No. That's the problem i dont use templates ... Link to comment Share on other sites More sharing options...
espacious Posted December 13, 2019 Author Share Posted December 13, 2019 I'm searching for a solution without using templates. I know it's not the best way but for now it's easyer. Link to comment Share on other sites More sharing options...
espacious Posted December 13, 2019 Author Share Posted December 13, 2019 Thanks ndiaga i will take a look. 1 Link to comment Share on other sites More sharing options...
espacious Posted December 13, 2019 Author Share Posted December 13, 2019 Hmm ndiaga will this work on Presta 1.7.6.x, since i read that is compatible only with 1.6? 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