Hire a web Developer and Designer to upgrade and boost your online presence with cutting edge Technologies

Friday, June 22, 2012

Magento search doesn’t work correctly

Sometimes you have done your Magento template with customizing the search result to show nice layout with resulted products. But whoops, your search result is not correct even though you do re-index in the backend, clean cache and look everything around the code core. But you are not getting correct result and you can’t find anything more to make it work. Please try following simple way.
Goto this file \app\design\frontend\default\<your_template>\layout\catalogsearch.xml, then make sure you have added below code. (because sometime we have lacked it)
1
2
3
4
5
6
<catalogsearch_result_index translate="label">
        <reference name="left">
            <block type="catalogsearch/layer" name="catalogsearch.leftnav" after="currency" template="catalog/layer/view.phtml"/>
        </reference>
        <!-- something here ... -->
</catalogsearch_result_index>

No comments:

Post a Comment