bonnie77 Posted February 28, 2012 Share Posted February 28, 2012 I'm new to Prestashop and I installed the fresh Prestashop 1.4.7 and trying to customize top permanent links and footer links. So I tried to modify blockpermanentlinks-header.tpl and blockpermanentlinks.tpl files. I wanted to get rid of sitemape and bookmark links and instead I wanted to put Home button and "About Us" button. So I opened up those tpl files in Dreamweaver and I removed the whole li tags for sitemap and bookmark but nothing changed. The top permanent link menu still displays sitemap and bookmark links. Did I supposed to edit different files rather than blockpermanentlinks-header.tpl or blockpermanentlinks.tpl? I just don't understand why it doesn't change anything after editing those files. --------------------------------------------------------------------------------------------------------------------------- <!-- Block permanent links module HEADER --> <ul id="header_links"> <li id="header_link_contact"><a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a></li> </ul> <!-- /Block permanent links module HEADER --> <!-- Block permanent links module --> <div id="permanent_links"> <!-- Contact --> <div class="contact"> <a href="{$link->getPageLink('contact-form.php', true)}"><img src="{$img_dir}icon/contact.gif" alt="{l s='contact' mod='blockpermanentlinks'}" title="{l s='contact' mod='blockpermanentlinks'}" /></a> <a href="{$link->getPageLink('contact-form.php', true)}">{l s='contact' mod='blockpermanentlinks'}</a> </div> </div> <!-- /Block permanent links module --> Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 28, 2012 Share Posted February 28, 2012 Hi bonnie, What exactly are you trying to customize in these files? -Mike Link to comment Share on other sites More sharing options...
bonnie77 Posted February 28, 2012 Author Share Posted February 28, 2012 I just want to get rid of sitemape and bookmark links from the top menu and put Home button and "About Us" button. But my modification didn't change anything. I removed the following code from blockpermanentlinks-header.tpl but I still see sitemap and bookmark link button on the top menu. What did I do wrong? Do I need to edit a different file to modify top menu? <li id="header_link_sitemap"><a href="{$link->getPageLink('sitemap.php')}" title="{l s='sitemap' mod='blockpermanentlinks'}">{l s='sitemap' mod='blockpermanentlinks'}</a></li> <li id="header_link_bookmark"> <script type="text/javascript">writeBookmarkLink('{$come_from}', '{$meta_title|addslashes|addslashes}', '{l s='bookmark' mod='blockpermanentlinks'}');</script> </li> 1 Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 28, 2012 Share Posted February 28, 2012 Hi bonnie, You actually don't need to go into the code to do this . For the top menu, all you need to do is go to the Modules page of your Back Office and edit that through the Top Horizontal Menu module. There, you can rearrange the order of links, delete existing ones or even add your own. I hope this helps. -Mike Link to comment Share on other sites More sharing options...
bonnie77 Posted February 28, 2012 Author Share Posted February 28, 2012 Where should I exactly go to edit the top block permanent link menu? Because I already checked the back office before I tried to edit this tpl files, but I couldn't figure out how to edit it. I went to Modules -> Positions -> Show: Permanent links block -> Header of pages - 1 module -> click edit button. But I didn't know how to edit those. In Back Office > Modules > Positions, I see "Module", "Hook into", and Exceptions but I don't seem to be able to edit anything there. Do I need to go to a different page to modify the top permanent link menus? Link to comment Share on other sites More sharing options...
fabricepmw Posted April 2, 2012 Share Posted April 2, 2012 and edit that through the Top Horizontal Menu module I don't get it either - there is no page called that that allows for a way to modify the sitemap settings. It's kind of awkward that the "sitemap" and "contact" pages cannot be added to the other footer links. Here's a screencap : https://minus.com/m6TyJXNUG/7f Please review this post and give a solution if you have one! thanks Link to comment Share on other sites More sharing options...
tdr170 Posted April 2, 2012 Share Posted April 2, 2012 Did you go to preferences/ performance and turn on force compile and turn cache off. 1 Link to comment Share on other sites More sharing options...
ecokidzfrance Posted April 3, 2012 Share Posted April 3, 2012 Hi there I am very much a beginner, but I think you are looking in the wrong section. Dont go to Modules » Positions etc Just go to Modules main tab, then open the full list of modules from the various sections there. Top Menu will be in "Other Modules" or "Front Office Functionality" (or the english equivvalent). From there you can configure the Top Menu links easily. Hope that helps V www.ecokidz.fr PS 1.4.6.2 Link to comment Share on other sites More sharing options...
[email protected] Posted June 7, 2012 Share Posted June 7, 2012 I don't get it either - there is no page called that that allows for a way to modify the sitemap settings. It's kind of awkward that the "sitemap" and "contact" pages cannot be added to the other footer links. Here's a screencap : https://minus.com/m6TyJXNUG/7f Please review this post and give a solution if you have one! thanks do u get any solution for this prob ??? Link to comment Share on other sites More sharing options...
antimattercrusader Posted July 12, 2012 Share Posted July 12, 2012 I'm having the same issue... and input? Link to comment Share on other sites More sharing options...
pcland Posted July 26, 2012 Share Posted July 26, 2012 There is no "Top Horizontal Menu" or "Top Menu" module in my default installation or when I search the module directory. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 27, 2012 Share Posted July 27, 2012 There is no "Top Horizontal Menu" or "Top Menu" module in my default installation or when I search the module directory. Can you please post a link to your site where we can see this for ourselves? -Mike Link to comment Share on other sites More sharing options...
pcland Posted July 27, 2012 Share Posted July 27, 2012 @Mike Thanks for your reply. My shop is not public yet. I'm using the default theme with Prestashop version 1.4.8.2. There is no module of this name that I can find in my Back Office or in the Prestashop Module Directory (see attached screenshots) or even if I google it. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 27, 2012 Share Posted July 27, 2012 @Mike Thanks for your reply. My shop is not public yet. I'm using the default theme with Prestashop version 1.4.8.2. There is no module of this name that I can find in my Back Office or in the Prestashop Module Directory (see attached screenshots) or even if I google it. I don't see any screenshots here, but try our attachment system under "More Reply Options." That should definitely simplify the process for you so that we can best help you out with this. -Mike Link to comment Share on other sites More sharing options...
pcland Posted July 27, 2012 Share Posted July 27, 2012 Sorry about that, here they are. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 27, 2012 Share Posted July 27, 2012 Rather than using the built-in search function in your Back Office, can you please go to the Modules tab, expand the Front Office Features section and let us know if you can find it there? If not, please post another screenshot. -Mike Link to comment Share on other sites More sharing options...
pcland Posted July 27, 2012 Share Posted July 27, 2012 I've looked through all my modules and haven't seen it and I definitely haven't deleted any. Screenshots of all my Front Office Features modules are attached. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 27, 2012 Share Posted July 27, 2012 I've looked through all my modules and haven't seen it and I definitely haven't deleted any. Screenshots of all my Front Office Features modules are attached. In that case, can you please also check under "Other Modules"? -Mike Link to comment Share on other sites More sharing options...
pcland Posted July 27, 2012 Share Posted July 27, 2012 I don't see a tab called "Other Modules" in my Back Office. A screenshot of all my module tabs is attached. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 27, 2012 Share Posted July 27, 2012 Go ahead and click on "Open All Tabs" and use CTRL + F to try to find this module. If it's truly not there, I'll see about setting you up with a new copy of this module, but you should have it in there somewhere. -Mike Link to comment Share on other sites More sharing options...
pcland Posted July 27, 2012 Share Posted July 27, 2012 It's definitely not there. Link to comment Share on other sites More sharing options...
tdr170 Posted July 27, 2012 Share Posted July 27, 2012 (edited) @Mike Thanks for your reply. My shop is not public yet. I'm using the default theme with Prestashop version 1.4.8.2. There is no module of this name that I can find in my Back Office or in the Prestashop Module Directory (see attached screenshots) or even if I google it. I think some people here have missed the important info your post, you stated that you are using 1.4.8.2 with the default theme, that theme does not have a top horizontal menu as standard you will need to switch to the 1.4 alt theme or install a top horizontal menu. http://addons.presta...es-prestashop#/ This is the top horizontal menu from the 1.5 theme and should work with your 1.4 theme. Edited July 27, 2012 by tdr170 (see edit history) Link to comment Share on other sites More sharing options...
pcland Posted July 27, 2012 Share Posted July 27, 2012 I see, thanks for the info and for the file! It doesn't seem to be available through the addons directory and I'm not sure why it's not included in the latest installation they're offering on prestashop.com but at least I have it now Link to comment Share on other sites More sharing options...
pepfoto Posted November 2, 2012 Share Posted November 2, 2012 I can't imagine you are SO BAD at understanding what he wants to do! Stop talking about the top horizontal menu. It's not that he's trying to edit!!! What he wants to modify is the permanent links block at the very page top. Newbie: Go to modules > blockpermanentlinks in your site, and edit the file blockpermanentlinks-header.tpl This is how you edit your permanent links block. Unfortunately, there's no other way to do so, even in 1.5.2. 2 Link to comment Share on other sites More sharing options...
[email protected] Posted February 20, 2013 Share Posted February 20, 2013 I want to restore the permanent link, currency block and language block to original position (default template location). I tried transplant module/position, but since none of those are the original place, top header. Please help me!!! www.tiendamerica.com Link to comment Share on other sites More sharing options...
cool and charming Posted March 7, 2013 Share Posted March 7, 2013 hi me to having the same issue..! please any one would help me out. I have a top horizontal menu module but it is given for navigation..! i could not find top menu in modules i have searched in front office feautures , other modules but could not see..!can any one help me how to change the links in top i.e the sitemap,bookmarks links..I need to delete them and keep my cart ,my account block,my wishlist, check out,login..so help me out please Link to comment Share on other sites More sharing options...
cool and charming Posted March 7, 2013 Share Posted March 7, 2013 hi can any one say me.! How to find the hook hints in prestashop? Helped one will be appreciated..! Link to comment Share on other sites More sharing options...
hubiii_pl Posted March 20, 2013 Share Posted March 20, 2013 hi my first post.. I can't imagine you are SO BAD at understanding what he wants to do! Stop talking about the top horizontal menu. It's not that he's trying to edit!!! What he wants to modify is the permanent links block at the very page top. Newbie: Go to modules > blockpermanentlinks in your site, and edit the file blockpermanentlinks-header.tpl This is how you edit your permanent links block. Unfortunately, there's no other way to do so, even in 1.5.2. yep 100% working but if the template has its own module blockpermanentlinks we need to edit themes/nameX/modules/blockpermanentlinks/blockpermanentlinks-header.tpl Link to comment Share on other sites More sharing options...
gingerling Posted July 13, 2013 Share Posted July 13, 2013 yep 100% working but if the template has its own module blockpermanentlinks we need to edit themes/nameX/modules/blockpermanentlinks/blockpermanentlinks-header.tpl Hi, I am trying to edit the links circled here http://www.ethical-pets-wholesale.co.uk/share/Screenshot%20from%202013-07-13%2013:59:55.png . Prestashop calls them "cms" links. I have found the blockpermanentlinks-header.tpl file you mentioned, and looked at it. I am trying to make the link to "About" go to /www.ethical-pets-wholesale.co.uk/blog rather than the cms page. I tried simply adding a normal <a href etc to the li in the /blockpermanentlinks-header.tpl file but it had no effect. I deleted all the links to see what would happen and that had not effect either. am I working on the correct file for my task? If so, what do i need to do? if not, what do i need to do Link to comment Share on other sites More sharing options...
PrashantSwami Posted September 4, 2013 Share Posted September 4, 2013 I want to assign link to link header through the outside module.How to pass variable to blockpermanentlinks-header.tpl which is outside out current module.Please give me answer. Link to comment Share on other sites More sharing options...
vekia Posted September 4, 2013 Share Posted September 4, 2013 this will be dynamic link or static link? if static, you have to edit .tpl file only, no php changes etc. Link to comment Share on other sites More sharing options...
bojees Posted December 2, 2013 Share Posted December 2, 2013 In this topic Superstar, Jamesbond007, Spiderman and so many hero's are there, but no solution found to fix. Also in another topic http://www.prestashop.com/forums/topic/285530-solved-adding-links-to-the-permalink/?hl=%2Bpermanent+%2Blinks+%2Bblock&do=findComment&comment=1440437 fix is not working, i don't know who's problem either Prestashop or Theme maker. Let me see which Hero is Helping to Solve this topic. Link to comment Share on other sites More sharing options...
bojees Posted December 2, 2013 Share Posted December 2, 2013 I fixed it After changes we have to manually clear the smarty cache, then only it will work. http://info.template...tml#prettyPhoto Thank you Link to comment Share on other sites More sharing options...
Rebel Tech Posted December 15, 2013 Share Posted December 15, 2013 I have found that to add to the permanent links you need to the .tpl file Mine looks like this <!-- Block permanent links module HEADER --> <ul id="header_links"> <li class="home"><a href="{$base_dir}"></a></li> <li id="header_link_contact"><a href="{$link->getPageLink('contact', true)}" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a></li> <li id="header_link_contact"><a href="{$link->getPageLink('prices-drop', true)}" title="{l s='Specials' mod='blockpermanentlinks'}">{l s='Specials' mod='blockpermanentlinks'}</a></li> <!-- <li id="header_link_sitemap"><a href="{$link->getPageLink('sitemap')}" title="{l s='sitemap' mod='blockpermanentlinks'}">{l s='sitemap' mod='blockpermanentlinks'}</a></li> --> <li id="header_link_bookmark"> <script type="text/javascript">writeBookmarkLink('{$come_from}', '{$meta_title|addslashes|addslashes}', '{l s='bookmark' mod='blockpermanentlinks' js=1}');</script> </li> </ul> <!-- /Block permanent links module HEADER --> The end result is the picture attached. I never used Top Menu - when I did - nothing changed on the site.Is that an issue? Link to comment Share on other sites More sharing options...
vekia Posted December 15, 2013 Share Posted December 15, 2013 hello what file you changed exactly? Link to comment Share on other sites More sharing options...
Rebel Tech Posted December 15, 2013 Share Posted December 15, 2013 (edited) hello what file you changed exactly? Themes\mytheme\modules\blockpermanentlinks\blockpermanentlinks-header.tpl Edited December 15, 2013 by Rebel Tech (see edit history) Link to comment Share on other sites More sharing options...
ricky11 Posted December 25, 2013 Share Posted December 25, 2013 Hi Guys, okay so we have now discovered that in order to remove the contact us / site map etc ,we need to edit the file themes/nameX/modules/blockpermanentlinks/blockpermanentlinks-header.tpl Okay thats good, but how do we replace the code to show " We ship to Xxxx Country" using geolocation (which is builtinto prestashop BO)? <!-- Block permanent links module HEADER --> <ul id="header_links" class="hidden-phone"> <li id="header_link_contact"><a href="{$link->getPageLink('contact', true)}" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a></li>* <li id="header_link_sitemap"><a href="{$link->getPageLink('sitemap')}" title="{l s='sitemap' mod='blockpermanentlinks'}">{l s='sitemap' mod='blockpermanentlinks'}</a></li> <li> <form method="post" action="{$link->getPageLink('products-comparison')}" onsubmit="true" > <p> <input type="submit" id="bt_compare" value="{l s='Compare' mod='blockpermanentlinks'}" /> <input type="hidden" name="compare_product_list" class="compare_product_list" value="" /> </p> </form> </li> </ul> <!-- /Block permanent links module HEADER --> Link to comment Share on other sites More sharing options...
legionari86 Posted April 4, 2014 Share Posted April 4, 2014 Hello to all, how do I change the url to the login authentication my account? I have a MultiShop and would like to set up two links in the header: Customer and Business. Customer is ok directs to the main home, business must address to the subfolder / shop how do I do this? I can not find where to change the file url Link to comment Share on other sites More sharing options...
wbhendrix Posted May 7, 2014 Share Posted May 7, 2014 did anyone find a solution to this? its extremely aggravating that in 2014 we are having a very long discussion about how to change a friggin simple menu. My god i wish i would have never convinced my client to switch from wordpress or joomla. Geeze. 2 Link to comment Share on other sites More sharing options...
Recommended Posts