Thibault GUILLAUME 79211b535f suite inte
2015-08-17 15:17:04 +02:00

25 lines
627 B
PHP

<?php
if (!defined('_PS_VERSION_'))
exit;
class BlockReinsuranceOverride extends BlockReinsurance
{
public function install() {
if (!parent::install() || !$this->registerHook('reassuranceTopProduct'))
return false;
}
public function hookreassuranceTopProduct($params)
{
if (!$this->isCached('blockreinsurance_top_product.tpl', $this->getCacheId()))
{
$infos = $this->getListContent($this->context->language->id);
$this->context->smarty->assign(array('infos' => $infos, 'nbblocks' => count($infos)));
}
return $this->display(__FILE__, 'blockreinsurance_top_product.tpl', $this->getCacheId());
}
}