How to override default search in Magento?

前端 未结 2 1999
野的像风
野的像风 2021-01-16 13:23

I am working on a Magento site, and i would like to edit the default search result.

Editing search result is not editing the appearance of search result but the actu

相关标签:
2条回答
  • 2021-01-16 13:38

    You will need to modify some of the models in catalogsearch module, this link has a good explanation of how to override Core classes. In your case you will need to add your logic somewhere in the Query model or its resource or collection models.

    0 讨论(0)
  • 2021-01-16 13:55

    This CMS Search extension will provide an excellent example of how to extend the default search. It adds extra content into the search index and allows you to control how those results are presented to the searcher.

    0 讨论(0)
提交回复
热议问题