omixam Posted May 4, 2014 Share Posted May 4, 2014 Hello,I need add to prestashop search module with a dropdown with the categories available for be used as a filter. I know that I can't override php files of the modules...I copied all file of this module to other folder and rename like this: /modules/blocksearch changed to /modules/blocksearchavancedthemes/bootstrap_theme/modules/blocksearch change to themes/bootstrap_theme/modules/blocksearchavanced I rename all files names and references inside of the files to blocksearchavanced, but when I installed the new module is not rendering neither css nor jquery and show like the image attach... I don't have any idea Why is passing that... I'm trying to debug for find the issue but yet I have can find it... Can any body help me? Link to comment Share on other sites More sharing options...
vekia Posted May 4, 2014 Share Posted May 4, 2014 you changed also css styles? and also js styles? these libraries are properly included to <header> section? perhaps you run store with caching (ccc for js and css) and it needs recompilation? Link to comment Share on other sites More sharing options...
omixam Posted May 4, 2014 Author Share Posted May 4, 2014 (edited) I only changed all names refer to blocksearch to blocksearchavanced it included: all files names (css,js,tpl,php) in the modules and my theme directory and also the variables that start with blocksearch_ to blocksearchavanced_... But not changed classes and id names... I see that my theme is not loading css of blocksearchavanced in <head></head>.. I working in local in develop mode (debug true,force recompilation selected,cache no, all ccc no)... I noted that the files that were override for my theme that work property for the original version of blocksearch not work for blocksearchavanced instead of I adapt for the copied to other folder and renamed for make coincide with their new reference module blocksearchavanced... Edited May 4, 2014 by omixam (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 5, 2014 Share Posted May 5, 2014 can you show how the hookHeader function looks like? Link to comment Share on other sites More sharing options...
omixam Posted May 5, 2014 Author Share Posted May 5, 2014 Bellow hookHeader function is exactly like show in original blocksearch. I checked the path for css files and are correct... public function hookHeader($params) { if (Configuration::get('PS_SEARCH_AJAX')) $this->context->controller->addJqueryPlugin('autocomplete'); $this->context->controller->addCSS(_THEME_CSS_DIR_.'product_list.css'); $this->context->controller->addCSS(($this->_path).'blocksearchavanced.css', 'all'); if (Configuration::get('PS_SEARCH_AJAX')) { Media::addJsDef(array('search_url' => $this->context->link->getPageLink('search', Tools::usingSecureMode()))); $this->context->controller->addJS(($this->_path).'blocksearchavanced.js'); } } 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