// Merge -> revision 9435
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9438 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -56,7 +56,7 @@ class ProductToolTip extends Module
|
||||
Configuration::updateValue('PS_PTOOLTIP_DAYS', 3);
|
||||
Configuration::updateValue('PS_PTOOLTIP_LIFETIME', 30);
|
||||
|
||||
return $this->registerHook('productfooter');
|
||||
return $this->registerHook('header') AND $this->registerHook('productfooter');
|
||||
}
|
||||
|
||||
public function uninstall()
|
||||
@@ -131,6 +131,12 @@ class ProductToolTip extends Module
|
||||
return $output;
|
||||
}
|
||||
|
||||
public function hookHeader($params)
|
||||
{
|
||||
Tools::addCSS(__PS_BASE_URI__.'css/jquery.jgrowl.css', 'all');
|
||||
Tools::addJS(__PS_BASE_URI__.'js/jquery/jquery.jgrowl-1.2.1.min.js');
|
||||
}
|
||||
|
||||
public function hookProductFooter($params)
|
||||
{
|
||||
$id_product = (int)($params['product']->id);
|
||||
|
||||
Reference in New Issue
Block a user