25 lines
627 B
PHP
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());
|
|
}
|
|
|
|
}
|