Jump to content

Blocksearch in footer - Prestashop 1.4


s7anley

Recommended Posts

Hi,

i just founded strange behavior, not sure if it's just in today final or in old version too. I tried change position of blocksearch. I added hookFooter and deleted registerHook for hookLeftColumn, hookRightColumn and hookTop. Because of that necessary css and js weren't loaded (jquery.autocomplete.css, jquery.autocomplete.js etc.). I checked displayHeader function in FrontControler and only HOOK_HEADER, HOOK_TOP and HOOK_LEFT_COLUMN are assigned here. Is there any way how add css and js when hooking something in to different place? For example from Footer.

Thanks

Link to comment
Share on other sites

Is this proper way how to solved this?

<?php

class FrontController extends FrontControllerCore
{

   public function displayHeader()
   { 
     self::$smarty->assign('HOOK_FOOTER',Module::hookExec('footer'));
     parent::displayHeader();                 
   }
}

Link to comment
Share on other sites

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