Jump to content


  • Posts

  • Joined

  • Last visited

itsallgood's Achievements


Newbie (1/14)



  1. wow - John, that is great!! Thanks so much for making such an amazing module. And for free too! It's working perfect.
  2. Hi guys, I'm coming on now getting my site setup - It's looking good I've just got to check one thing, I'd like the homepage to show all the categories in a grid with images. I've found a module that would do exactly what i want: http://addons.prestashop.com/en/front-office-features/2358-homepage-categories.html My question is -- do i really need to buy a module to add the feature i want? I'm not sure if the new versions included this by default, or if there is a free way to add it. If not -- i'll just buy the one above. Thanks for your help!
  3. Paul C -- thanks so much! I've honestly being trying to do this for close to 10hrs -- and i've been missing the last step! All my code works -- but i didn't realise that in the prestashop admin, you have to go to the modules, find the one you've edited, and click "Reset"!!! I can't believe it! LOL It works great now thanks -- but it has caused me to have another question... In header.tpl, the hook is {$HOOK_TOP} I started editing the blockpermanentlinks module, because it contained $this->registerHook('top'). But now i see that $this->registerHook('top') is also in the blocksearch module. Does that mean that, wherever $HOOK_TOP is in the template, it will load the hook in all the modules that contain the registerHook('top')??? Thanks again for the help!
  4. Hi guys, I've been trying to work this out for HOURS now - and am having no luck I have tried using the override folder, but couldn't get it to work - so for now, im just editing the original files -- once it works, i'll try and move my mods to the override files) In themes\{my-theme}\header.tpl. I added this... {$HOOK_MYTEST} In classes\FrontController.php. I added the following line... self::$smarty->assign(array( 'HOOK_HEADER' => Module::hookExec('header'), 'HOOK_TOP' => Module::hookExec('top'), 'HOOK_MYTEST' => Module::hookExec('mytest'), /// MY NEW LINE!!! 'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn') )); In modules\blockpermanentlinks\blockpermanentlinks.php. I added $this->registerHook('mytest') into the install function... function install() { return (parent::install() AND $this->registerHook('top') AND $this->registerHook('mytest') AND $this->registerHook('header')); } I also added... function hookmytest($params) { echo 'hello hello hello hello'; return 'hello hello hello hello'; } Then, in my database, in the ps_hook table, i added a new row, with... name: mytest title: mytest desc: just a test position: 1 live_edit 0 I have turned on.. Back Office > Preferences > Performance > Force compile. And i have disabled Cache. I have tried so many guides on the net, and in this forum, but none seem to work. Please help! Thanks for reading.
  • Create New...