frank_jarle Posted February 5, 2015 Share Posted February 5, 2015 (edited) Hi I am trying to place compare-button on the menu. I have figured out how i can added it to the menu, but it seems unable to added on the main menu line. Does anyone have hint how to do this? I edit the following file: themes/default-bootstrap/modules/blocktopmenu/blocktopmenu.tpl I have added the code in bold: {if $MENU != ''} <!-- Menu --> <div id="block_top_menu" class="sf-contener clearfix col-lg-12"> <div class="content_sortPagiBar clearfix"> <div class="sortPagiBar clearfix"> {include file="{$tpl_dir}product-compare.tpl"} </div> </div> <div class="cat-title">{l s="Categories" mod="blocktopmenu"}</div> <ul class="sf-menu clearfix menu-content"> {$MENU} {if $MENU_SEARCH} <li class="sf-search noBack" style="float:right"> <form id="searchbox" action="{$link->getPageLink('search')|escape:'html':'UTF-8'}" method="get"> <p> <input type="hidden" name="controller" value="search" /> <input type="hidden" value="position" name="orderby"/> <input type="hidden" value="desc" name="orderway"/> <input type="text" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|escape:'html':'UTF-8'}{/if}" /> </p> </form> </li> {/if} </ul> </div> <!--/ Menu -->{/if} Result look like this: Edited February 22, 2015 by frank_jarle (see edit history) Link to comment Share on other sites More sharing options...
frank_jarle Posted February 11, 2015 Author Share Posted February 11, 2015 Bump, anyone know how to realign the compare button? Link to comment Share on other sites More sharing options...
frank_jarle Posted February 17, 2015 Author Share Posted February 17, 2015 No one know this? Link to comment Share on other sites More sharing options...
Crezzur.com Posted February 18, 2015 Share Posted February 18, 2015 I had some spare time so here you go Result: STORE_ROOT_DIR/modules/blocktopmenu/blocktopmenu.tpl {if $MENU != ''} <!-- Menu --> <div id="block_top_menu" class="sf-contener clearfix col-lg-12"> <div class="cat-title">{l s="Categories" mod="blocktopmenu"}</div> <ul class="sf-menu clearfix menu-content"> {$MENU} {if $MENU_SEARCH} <li class="sf-search noBack" style="float:right"> <form id="searchbox" action="{$link->getPageLink('search')|escape:'html':'UTF-8'}" method="get"> <p> <input type="hidden" name="controller" value="search" /> <input type="hidden" value="position" name="orderby"/> <input type="hidden" value="desc" name="orderway"/> <input type="text" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|escape:'html':'UTF-8'}{/if}" /> </p> </form> </li> {/if} <div style="float:right; margin-top: 6px; margin-right:5px;"class="content_sortPagiBar clearfix"> <div class="sortPagiBar clearfix"> {include file="{$tpl_dir}product-compare.tpl"} </div> </div> </ul> </div> <!--/ Menu --> {/if} 1 Link to comment Share on other sites More sharing options...
frank_jarle Posted February 22, 2015 Author Share Posted February 22, 2015 Ah, that did wonder. Well i tried many different locations before your suggestion, but where you put the code seems to work. However i still had to edit the themes/default-bootstrap/modules/blocktopmenu/blocktopmenu.tpl for it to work for me. LOTS of thanks. :-) Link to comment Share on other sites More sharing options...
Crezzur.com Posted February 22, 2015 Share Posted February 22, 2015 glad it worked dont forget to mark your topic as solved 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