Home » Magento tutorials » How to add search by category in magento mini search

How to add search by category in magento mini search

This tutorial shows you How to add search by category in magento mini search. You may have searched on Magento Connect and you will find out that there is no free extension in magento commerce which will help you to search your store with particular category. But you can do as following:

First create the drop down list of all category in form.mini.phtml

Now go to app/code/core/Mage/CatalogSearch/Helper and open the Data.php and add the below code:

Now go to app/code/core/Mage/CatalogSearch/Model and open the Layer.php

replace

with

Save and Enjoy.

Now you have search by category in Magento mini search

About Gareth

avatar
Gareth is an editor at Tutorial Magento. His special hobby is to share magento knowledge and experience with everyone.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Scroll To Top