Jump to content

[SOLVED] How to align Compare [] button on the menu?


Recommended Posts

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:

2015-02-05_1755.png

Edited by frank_jarle (see edit history)
Link to comment
Share on other sites

I had some spare time so here you go ;)

 

Result:

YYmo1ka.jpg

 

 

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}


 

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...