Jump to content

Jak wczepić block cms info w Footer


grze11

Recommended Posts

Hej mam problem z block cms info chciałem wczepić go do footer używam presty 1.6 i domyślnie można go wczepić jedynie do displayHome, próbowałem dodać do blockcmsinfo.php  kod $this->registerHook('footer') &&  

public function install()
{
return parent::install() &&
$this->installDB() &&
$this->registerHook('home') &&
$this->registerHook('footer') &&
$this->installFixtures() &&
$this->disableDevice(Context::DEVICE_TABLET | Context::DEVICE_MOBILE);
}
 
 
 
public function hookFooter($params) {
$this->context->controller->addCSS($this->_path.'style.css', 'all');
if (!$this->isCached('blockcmsinfo.tpl', $this->getCacheId()))
{
$infos = $this->getInfos($this->context->language->id, $this->context->shop->id);
$this->context->smarty->assign(array('infos' => $infos, 'nbblocks' => count($infos)));
}
 
}

 

 

w panelu moduł można dodac do footera i  w Moduły / pozycji blok pojawia sie w displayFooter ale nie wyswietla sie na stronie 

 

Prosze o pomoc.

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