grasnal Posted December 27, 2010 Share Posted December 27, 2010 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.//editWhere 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 More sharing options...
grasnal Posted December 28, 2010 Author Share Posted December 28, 2010 bumpWhere 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 More sharing options...
Konstantin Komarov Posted June 17, 2011 Share Posted June 17, 2011 You must place the Search module in HOOK "Header of pages" too.Else // check if library javascript load in header hook $this->_disabledSearchAjax();return "PS_SEARCH_AJAX" value to zero. Link to comment Share on other sites More sharing options...
nicanor Posted December 19, 2011 Share Posted December 19, 2011 What is the HOOK "Header of pages"? I mean which file, or in back office? Link to comment Share on other sites More sharing options...
Konstantin Komarov Posted December 19, 2011 Share Posted December 19, 2011 What is the HOOK "Header of pages"? I mean which file, or in back office? In back office. Settings position of modules. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now