Jump to content

Bug? Problem with autocomplete in Quick Search Block module


Recommended Posts

Hi,

 

First I have to say I am very new to PrestaShop, setting up my first shop, for a client.

 

The client bought a theme, that requires the Quick Search Blok to be "hooked" in at the "displayTop"(Top of pages). I do this by transplanting the module.

 

However, when the module is not hooked in the "header", the jQuery plugin autocomplete is not loaded.

 

I fixed this by adding:

 

if (Configuration::get('PS_SEARCH_AJAX'))

$this->context->controller->addJqueryPlugin('autocomplete');

 

on line 110 of blocksearch.php in ./modules/blocksearch/

 

As this is my first time playing with presta, I not sure wether this is a bug in the module, that I should report, or whether I am just doing it wrong.

 

Can somebody please enlighten me?

 

Thank you

Link to comment
Share on other sites

  • 10 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...