Jump to content

[SOLVED] AJAX Search stopped working after upgrading from 1.3.1 -> 1.3.3 or after quick search module transplanting.


Recommended Posts

Hi all!

Please help me troubleshoot this problem. I noticed that AJAX Search in my shop is not functioning any more. I can't determine the cause of that because I didn't check that feature neither after upgrade nor after module transplanting from "Top of pages" to "Left Column". There is possibility that I messed up something in .php files in the meantime.

I noticed that if I switch "Use AJAX search" option to be ON and save settings at Settings -> Search tab and return to that tab after a while, this option is set to OFF again.

Thanks in advance,
Regards.

//edit

Where are this module's setting saved? In database or files? Where can I manually set "Use AJAX search" option?

Link to comment
Share on other sites

bump

Where are this module’s setting saved? In database or files? Where can I manually set “Use AJAX search” option?


SOLUTION:
I've managed to re-enable this feature by removing all instances of "Simple search" from all positions, disable, un-install, install again, enable and add to default position.

Other thing I had notice is that the value of:

SELECT *
FROM `ps_configuration`
WHERE `name` LIKE 'PS_SEARCH_AJAX'


Must be "1" if AJAX Search is suppose to work.

Only two things that have influence to this setting are:
1. Setting this from admin panel (radio switch at Settings -> Search)
2. Function at /modules/blocksearch/blocksearch.php

private function _disabledSearchAjax()
   {
       if (!$this->isRegisteredInHook('header'))
           Configuration::updateValue('PS_SEARCH_AJAX', 0);
   }

Link to comment
Share on other sites

  • 5 months later...
  • 6 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...