Jump to content

Problème TM Categorie sur mon template


Recommended Posts

Bonjour, j'ai acheté un template sous prestashop addons, voici mon site internet: http://www.pricefoot.com/ mais j'ai rencontré un problème avec le module TM Catégorie qui ne s'affiche pas au bon endroit (au dessus du slide, bien qu'il s'y remette en changeant de page) mais surtout il reste figé et se "remonte" pas.

 

Sur le forum anglophone, un membre ma trouvé une erreur voici son premier message:

 

"Timestamp: 3/21/2012 4:18:06 PM

Error: $("#search_query_top").autocomplete is not a function

Source File: http://www.pricefoot.com/

Line: 101

 

You do not have the autocomplete UI for jquery.

http://jqueryui.com/...s/autocomplete/ "

 

le second message:

 

First check if the file is on the server. It should be in 'js/jquery/jquery.autocomplete.js'

 

et oui je l'ai

 

le troisième:

 

You do not have the 'blocksearch' module installed, Actually it is installed, but not visible on the home page.

 

You should check now in 'modules/blocksearch/bocksearch.php' if you have these lines:

 

Tools::addCSS(_PS_CSS_DIR_.'jquery.autocomplete.css');

Tools::addJS(_PS_JS_DIR_.'jquery/jquery.autocomplete.js');

 

j'ai également ces lignes

 

Quatrième message:

 

Blocksearch is the folder name of the "Quick Search block".

 

You might need to edit some files, as the js is not included.

 

Please post the content of blocksearch.php

 

voici le contenu du "block search" folder in /www/modules/blocksearch/blocksearch.php :

 

 

if (!defined('_PS_VERSION_'))

exit;

 

class BlockSearch extends Module

{

public function __construct()

{

$this->name = 'blocksearch';

$this->tab = 'search_filter';

$this->version = 1.0;

$this->author = 'PrestaShop';

$this->need_instance = 0;

 

parent::__construct();

 

$this->displayName = $this->l('Quick Search block');

$this->description = $this->l('Adds a block with a quick search field.');

}

 

public function install()

{

if (!parent::install() OR !$this->registerHook('top')

OR !$this->registerHook('leftColumn')

OR !$this->registerHook('rightColumn')

OR !$this->registerHook('header')

)

return false;

return true;

}

 

public function hookHeader($params)

{

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

{

Tools::addCSS(_PS_CSS_DIR_.'jquery.autocomplete.css');

Tools::addJS(_PS_JS_DIR_.'jquery/jquery.autocomplete.js');

}

Tools::addCSS(_THEME_CSS_DIR_.'product_list.css');

Tools::addCSS(($this->_path).'blocksearch.css', 'all');

}

 

public function hookLeftColumn($params)

{

return $this->hookRightColumn($params);

}

 

public function hookRightColumn($params)

{

$this->_hookCommon($params);

return $this->display(__FILE__, 'blocksearch.tpl');

}

 

public function hookTop($params)

{

$this->_hookCommon($params);

return $this->display(__FILE__, 'blocksearch-top.tpl');

}

 

/**

* _hookAll has to be called in each hookXXX methods. This is made to avoid code duplication.

*

* @param mixed $params

* @return void

*/

private function _hookCommon($params)

{

global $smarty;

 

$smarty->assign('ENT_QUOTES', ENT_QUOTES);

$smarty->assign('search_ssl', (int)Tools::usingSecureMode());

 

$smarty->assign('ajaxsearch', Configuration::get('PS_SEARCH_AJAX'));

$smarty->assign('instantsearch', Configuration::get('PS_INSTANT_SEARCH'));

 

return true;

}

}

 

 

Je n'ai cependant plus de nouvelles de sa part et je ne sait pas ou il voulait en venir, est-ce qu'un connait la solution pour mon problème?

 

Merci par avance.

 

Franck

Link to comment
Share on other sites

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