[*] MO : Remove calls to isRegisteredInHook in crossselling and productscategory
This commit is contained in:
1 parent
7e93b2cffd
commit
8dd951c2df
4 files changed
+22
-6
No files matched your search
@@ -43,9 +43,6 @@ class CrossSelling extends Module
|
|||||||
|
|
||||||
$this->displayName = $this->l('Cross Selling');
|
$this->displayName = $this->l('Cross Selling');
|
||||||
$this->description = $this->l('Customers who bought this product also bought:');
|
$this->description = $this->l('Customers who bought this product also bought:');
|
||||||
|
|
||||||
if (!$this->isRegisteredInHook('header'))
|
|
||||||
$this->registerHook('header');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function install()
|
public function install()
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!defined('_PS_VERSION_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
|
function upgrade_module_0_8($object)
|
||||||
|
{
|
||||||
|
if (!$object->isRegisteredInHook('header'))
|
||||||
|
return $object->registerHook('header');
|
||||||
|
return true;
|
||||||
|
}
|
||||||
@@ -43,9 +43,6 @@ class productsCategory extends Module
|
|||||||
|
|
||||||
$this->displayName = $this->l('Products Category');
|
$this->displayName = $this->l('Products Category');
|
||||||
$this->description = $this->l('Display products of the same category on the product page.');
|
$this->description = $this->l('Display products of the same category on the product page.');
|
||||||
|
|
||||||
if (!$this->isRegisteredInHook('header'))
|
|
||||||
$this->registerHook('header');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function install()
|
public function install()
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!defined('_PS_VERSION_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
|
function upgrade_module_1_5($object)
|
||||||
|
{
|
||||||
|
if (!$object->isRegisteredInHook('header'))
|
||||||
|
return $object->registerHook('header');
|
||||||
|
return true;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user