Search Page URL Conflict with Other Module (When using Klevu’s Template)

If you are using other module for layered navigation (example Amasty, Manadev), you may find a conflict with Klevu’s search result page URL.

Issue:
When you click on Klevu’s autosuggestions it redirects you to URL which is handled by the other module, but not on Klevu’s search result page.

To resolve the issue, please follow the steps below.

  1. Open <Magento-installation-folder>/app/code/community/Klevu/Search/etc/config.xml file
  2. In config.xml file:
    Replace
    <frontName>search</frontName>
    With
    <frontName>searchresult</frontName>
  3. Open <Magento-installation-folder>/app/design/frontend/base/default/template/klevu/search/form_js.phtml
  4. In form_js.phtml file:
    Replace
    $url = Mage::getUrl(‘search’, array(
    ‘_secure’ => Mage::app()->getFrontController()->getRequest()->isSecure()
    ));
    With
    $url = Mage::getUrl(‘searchresult’, array(
    ‘_secure’ => Mage::app()->getFrontController()->getRequest()->isSecure()
    ));

Please do let us know if you need any help.