: 解决搜索失效的问题 Search Not working

Few days back I was working on a theme design and faced a very rare issue. The issue we faced was magento search not working in Magento Responsive Magento Web Design theme which is by default provided with the bundle of magento.

 

I took few steps to make it working and found out many solutions which can work for you.

Here are few steps you should take and check before you make a final call to change the coding:-

 

Clear Magento cache

Sometimes due to caching issues in magento the search might not work so to solve this problem the preferable solution is to flush magento cache.

To flush your magento cache all you have to do is:-

 

Log in to your magento admin and go to System -> Cache Management and then flush your magento cache

 

Magento: 解决搜索失效的问题 Search Not working

If you are in development mode you can disable the cache if you want to by just selecting all and then selecting disable from the actions dropdown.

 

Reindex Data:-

Sometimes if magento is not indexed properly then also there can be issues in the search. So another suggested and solution is to reindex the data in magento.

To reindex your data all you have to do is :-

 

In your magento admin panel you have to go to System -> Index Management in that click on select all and then select Reindex Data from drop down and then submit.

 

Magento: 解决搜索失效的问题 Search Not working

Return to base magento theme:-

Get back to base magento theme and check if the magento search is working or not if its working then there must be an issue with the themes custom coding .

 

If it’s working compare files named catalogsearch.xml

Now where is catalogsearch.xml file :-

Compare the file in app/design/frontend/base/default/layout/catalogsearch.xml to app/design/frontend/default/your_theme/layout/catalogsearch.xml and see if you are missing any line of code.

One more thing you can do to test is to take a backup of catalogsearch.xml of your theme and delete it from the directory to see if it is working.

 

Check product attributes:-

Sometimes due to some reason attributes are not properly configured.

To manage your attributes go to catalog -> Attributes -> Manage attributes Seach for name attribute And configure it like we have (Important check that the scope of name attribute is set to Global).

 

Magento: 解决搜索失效的问题 Search Not working

Also search for sku attribute And configure it like we have (Important check that the scope of sku attribute is set to Global).

 

Magento: 解决搜索失效的问题 Search Not working

Change the configurations of search:-

Sometimes the configurations of catalog search are not properly defined.

So to change the search configurations we have to go to System -> Configuration on the left hand side click on catalog and from that select catalog search tab and configure it like we have done.

 

Magento: 解决搜索失效的问题 Search Not working

 

I hope this is able to solve your problem. If still your magento search is not working, kindly let me know and i will help you out.

 

原文:http://www.infigic.com/magento-search-not-working/

本文转自:Magento: 解决搜索失效的问题 Search Not working

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值