2026 Executive BenchmarkMid-Market Enterprise Modernization: How leaders across unify Commerce, Odoo ERP & AI in 90 days.
MAGENTO COMMERCE

Create Multiple Mini-Search Box In Magneto

step : GOTO :> appdesignfrontenddefaultlayoutcatalogsearch.xml step : GOTO :> appdesignfrontendrwddefaulttemplatecatalogsearchform.mini.phtml ->Find This Code. __(‘Search:’) ?> ” v...

Akshar Group Technologies
Dec 25, 2020
1 min read
Verified Source

step

code
<form id="search_mini_form" action="getResultUrl() ?>" method="get">
: GOTO :> appdesignfrontenddefaultlayoutcatalogsearch.xml

step
code
<form id="Second_search_mini_form" action="getResultUrl() ?>" method="get">
: GOTO :> appdesignfrontendrwddefaulttemplatecatalogsearchform.mini.phtml ->Find This Code.
code
<form id="search_mini_form" action="getResultUrl() ?>" method="get">
__(‘Search:') ?>
<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') ?>
//<!]>
->Replace This Code.

Second Search

->Replace This Code.
code
<form id="Second_search_mini_form" action="getResultUrl() ?>"method="get">__(‘Search:') ?>
<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') ?>
//<!]>
Third Search:>
code
<form id="Second_search_mini_form" action="getResultUrl() ?>" method="get">
__(‘Search:') ?>
<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') ?>
//<!]>
step
code
getChildHtml('topSearch') ?>
getChildHtml('Second_Search') ?>
getChildHtml('third_Search') ?>
You Can Use Any .phtml File :>
code
getChildHtml('topSearch') ?>
getChildHtml('Second_Search') ?>
getChildHtml('third_Search') ?>
Share this playbook
LET'S BUILD WHAT'S NEXT

What's Holding Your Business Back?

Tell us where you want to go, what's getting in the way, and we'll help you figure out the technology to get there.

No sales pitch. Confidential strategic advisory.