| 7 comments ]

Re-Share This Post: Technorati Digg This Stumble Stumble Facebook Twitter
If you would like to have the Search block within the navigation menu , Follow These Simple steps

Method 1
  1. Navigate to app/design/frontend/hamjjaa/default/template/catalog/navigation (Here hamjjaa is the template name )
  2. Open top.phtml
  3. Enter the following Code
 <form id="search_mini_form" action="<?php echo $this->helper('catalogSearch')->getResultUrl() ?>" method="get">  
   <fieldset class="mini-search">  
   <legend><?php echo $this->__('Search Site') ?></legend>  
     <input id="search" type="text" class="input-text" name="<?php echo $this->helper('catalogSearch')->getQueryParamName() ?>" value="<?php echo $this->helper('catalogSearch')->getEscapedQueryText() ?>"/>  
     <input type="image" src="<?php echo $this->getSkinUrl('images/btn_mini_search.gif') ?>" alt="<?php echo $this->__('Search') ?>"/>  
     <div id="search_autocomplete" class="search-autocomplete"></div>  
     <script type="text/javascript">  
       var searchForm = new Varien.searchForm('search_mini_form', 'search', '<?php echo $this->helper('catalogSearch')->__('Search entire store here...') ?>');  
       searchForm.initAutocomplete('<?php echo $this->helper('catalogSearch')->getSuggestUrl() ?>', 'search_autocomplete');  
     </script>  
   </fieldset>  
 </form>  

Method 2

The Default code of magento search bar which is used to call the magento search in header is
 <?=$this->getLayout()->getBlock('top.search')->toHtml()?>   
try to call the following code instead of above code
 <?=$this->getChildHtml('topSearch')?>   
so you’ll be able to put the search bar anywhere in your template.

Method 3

Move to line no 32 of app/design/frontend///layout/catalog.xml. Here look for this code


 <reference name="header">  
 <block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/>  
 </reference>  

Modify the above code with the following code
 <reference name="left">  
 <block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/>  
 </reference>  
Check if you got it or not. If not then check either you have disabled your Cache or not, by going to system->cache management . Disable Cache and clean the cache. and Check again ( You are done ).

One Important Thing first remove the .form-search { position: absolute; right: 10px; top: 100px; }
 from Css
and Change it with .form-search { position: relative;  } and stylize it with you own css 

7 comments

Anonymous said... @ 12 October 2015 at 02:38

Excellent post! I must thank you for this informative read. I hope you will post again soon.
web development melbourne | website development company melbourne

Unknown said... @ 8 November 2015 at 04:20

I read your whole blog. Your work is really good and inseparable .Thanks for sharing.
Magento Development Company
custom website design services

Zinavo-Web Design | Web Development | SEO | Mobile Apps | ERP/CRM said... @ 27 July 2016 at 05:14

very nice blogs!!! i have to learning for lot of information for this sites...Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.Website Designing Company | Web Development Company Bangalore

Bangaloreweb guru said... @ 25 August 2017 at 03:02

That's wonderful stuff you've written up here. Been searching for it all around. Great blogWeb Designing Companies Bangalore | Website Designing Company Bangalore

Ancy merina said... @ 9 February 2018 at 02:36
This comment has been removed by the author.
awata software systems said... @ 23 March 2018 at 05:09

mobile app development company chennai
responsive website development company chennai
Software Application Development Company Chennai

Freya said... @ 26 March 2019 at 00:53
This comment has been removed by the author.

Post a Comment

 
http://www.tsfaenterprise.com TSFA ENTERPRISE TSFA GAS OVEN AND HOME APPLIANCE IN PAKISTAN GAS OVEN GAS OVEN in pakistan Pakistan Home Appliance http://gasovenandhomeappliancesinpakistan.com/ TSFA ENTERPRISE TSFA GAS OVEN AND HOME APPLIANCE IN PAKISTAN GAS OVEN GAS OVEN in pakistan Pakistan Home Appliance