search

step 1: GOTO :> appdesignfrontend[theme]defaultlayoutcatalogsearch.xml

step 2: ->Find This Code.


->Replace This Code.

step 3: GOTO :> appdesignfrontendrwddefaulttemplatecatalogsearchform.mini.phtml ->Find This Code.

<form id="search_mini_form" action="getResultUrl() ?>" method="get">
<input id=”search” type=”search” name=”getQueryParamName() ?>” value=”getEscapedQueryText() ?>” class=”input-text required-entry” maxlength=”getMaxQueryLength();?>” placeholder=”__(‘Search entire store here…’) ?>” /> <button type=”submit” title=”__(‘Search’) ?>” class=”button search-button”>__(‘Search’) ?>

//<![CDATA[ var searchForm = new Varien.searchForm(‘search_mini_form’, ‘search’, ”); searchForm.initAutocomplete(‘getSuggestUrl() ?>’, ‘search_autocomplete’); //]]>

->Replace This Code. Second Search:> ->Replace This Code.

<form id="Second_search_mini_form" action="getResultUrl() ?>" method="get">
<input id=”Second_search” type=”search” name=”getQueryParamName() ?>” value=”getEscapedQueryText() ?>” class=”input-text required-entry” maxlength=”getMaxQueryLength();?>” placeholder=”__(‘Search entire store here…’) ?>” /> <button type=”submit” title=”__(‘Search’) ?>” class=”button search-button”>__(‘Search’) ?>

//<![CDATA[ var searchForm = new Varien.searchForm(‘Second_search_mini_form’, ‘Second_search’, ”); searchForm.initAutocomplete(‘getSuggestUrl() ?>’, ‘Second_search_autocomplete’); //]]>

Third Search:>

<form id="Second_search_mini_form" action="getResultUrl() ?>" method="get">
<input id=”Second_search” type=”search” name=”getQueryParamName() ?>” value=”getEscapedQueryText() ?>” class=”input-text required-entry” maxlength=”getMaxQueryLength();?>” placeholder=”__(‘Search entire store here…’) ?>” /> <button type=”submit” title=”__(‘Search’) ?>” class=”button search-button”>__(‘Search’) ?>

//<![CDATA[ var searchForm = new Varien.searchForm(‘Second_search_mini_form’, ‘Second_search’, ”); searchForm.initAutocomplete(‘getSuggestUrl() ?>’, ‘Second_search_autocomplete’); //]]>

step 4: You Can Use Any .phtml File :>

getChildHtml('topSearch') ?>
getChildHtml('Second_Search') ?>
getChildHtml('third_Search') ?>

About Author:

Kalpesh Chavada

Kalpesh Chavada is Our Founder & CEO of Akshar Group Technologies. He is serving with 11+ years of experience in different technologies like Magento, WordPress, Laravel, jQuery, Shopify, Branding, and Digital Marketing. He is very good with creative logic and always ready to take on challenges.

Kalpesh Author