1

In magento, it is not possible to search for categories.

Currently it shows only the products in the list.

I need Categories and products in the search result.

Search results for categories should be related to searched query and not to the category of products that are listed in the result.

Otherwise how to show the categories name associated with search result products?

Help me find the file, In which file to we can edit the search query?

bumped to the homepage by Community 2 days ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

0

I'm not sure I understand your question correctly.

You want to show categories which match the search query, correct?

I would implement a new block, add it via layout.xml to the catalogsearch_result_index and/or catalogsearch_advanced_result.

The block only needs to get all the categories which match the query, here you need to define whether you want like or fulltext search, or something more complex.

Then you need a template, iterate over all the categories and output them.

0

Try Sphinx Search Ultimate. This extension support search by multiple conent types (products, categories, blogs, articles etc)

Demo: http://ssu.demo.mirasvit.com/catalogsearch/result/?cat=0&q=camera

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.