// new modules hooked for default theme, fixed hook names
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11087 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -213,6 +213,7 @@ INSERT INTO `PREFIX_hook_module` (`id_module`, `id_hook`, `position`) VALUES
|
|||||||
(56, 14, 6),
|
(56, 14, 6),
|
||||||
/* blocksharefb */
|
/* blocksharefb */
|
||||||
(57, 21, 7),
|
(57, 21, 7),
|
||||||
|
(57, 40, 1),
|
||||||
/* blocksocial */
|
/* blocksocial */
|
||||||
(58, 9, 5),
|
(58, 9, 5),
|
||||||
(58, 21, 5),
|
(58, 21, 5),
|
||||||
@@ -226,8 +227,8 @@ INSERT INTO `PREFIX_hook_module` (`id_module`, `id_hook`, `position`) VALUES
|
|||||||
(62, 21, 1),
|
(62, 21, 1),
|
||||||
/* favoriteproducts */
|
/* favoriteproducts */
|
||||||
(64, 9, 22),
|
(64, 9, 22),
|
||||||
(64, 25, 1),
|
(64, 26, 1),
|
||||||
(64, 40, 1),
|
(64, 40, 2),
|
||||||
(64, 96, 1),
|
(64, 96, 1),
|
||||||
/* blocknewsletter */
|
/* blocknewsletter */
|
||||||
(65, 9, 24),
|
(65, 9, 24),
|
||||||
@@ -1583,8 +1584,6 @@ REPLACE INTO `PREFIX_configuration` (id_group_shop, id_shop, name, value, `date_
|
|||||||
(NULL, NULL, 'PS_STORES_DISPLAY_FOOTER','1', NOW(), NOW()),
|
(NULL, NULL, 'PS_STORES_DISPLAY_FOOTER','1', NOW(), NOW()),
|
||||||
(NULL, NULL, 'SHOP_LOGO_WIDTH','224', NOW(), NOW()),
|
(NULL, NULL, 'SHOP_LOGO_WIDTH','224', NOW(), NOW()),
|
||||||
(NULL, NULL, 'SHOP_LOGO_HEIGHT','73', NOW(), NOW()),
|
(NULL, NULL, 'SHOP_LOGO_HEIGHT','73', NOW(), NOW()),
|
||||||
(NULL, NULL, 'EDITORIAL_IMAGE_WIDTH','530', NOW(), NOW()),
|
|
||||||
(NULL, NULL, 'EDITORIAL_IMAGE_HEIGHT','228', NOW(), NOW()),
|
|
||||||
(NULL, NULL, 'PS_DISPLAY_SUPPLIERS','1', NOW(), NOW()),
|
(NULL, NULL, 'PS_DISPLAY_SUPPLIERS','1', NOW(), NOW()),
|
||||||
(NULL, NULL, 'PS_LEGACY_IMAGES','1', NOW(), NOW()),
|
(NULL, NULL, 'PS_LEGACY_IMAGES','1', NOW(), NOW()),
|
||||||
(NULL, NULL, 'PS_IMAGE_QUALITY','jpg', NOW(), NOW()),
|
(NULL, NULL, 'PS_IMAGE_QUALITY','jpg', NOW(), NOW()),
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`
|
|||||||
(93, 'actionAttributeDelete', 'On deleting attribute feature value', 'On deleting attribute feature value', 0, 0),
|
(93, 'actionAttributeDelete', 'On deleting attribute feature value', 'On deleting attribute feature value', 0, 0),
|
||||||
(94, 'actionAttributeSave', 'On saving attribute feature value', 'On saving attribute feature value', 0, 0),
|
(94, 'actionAttributeSave', 'On saving attribute feature value', 'On saving attribute feature value', 0, 0),
|
||||||
(95, 'actionTaxManager', 'Tax Manager Factory', '' , 0, 0),
|
(95, 'actionTaxManager', 'Tax Manager Factory', '' , 0, 0),
|
||||||
(96, 'myAccountBlock', 'My account block', 'Display extra informations inside the "my account" block', 1, 0);
|
(96, 'displayMyAccountBlock', 'My account block', 'Display extra informations inside the "my account" block', 1, 0);
|
||||||
|
|
||||||
INSERT INTO `PREFIX_configuration` (`id_configuration`, `name`, `value`, `date_add`, `date_upd`) VALUES
|
INSERT INTO `PREFIX_configuration` (`id_configuration`, `name`, `value`, `date_add`, `date_upd`) VALUES
|
||||||
(1, 'PS_LANG_DEFAULT', '1', NOW(), NOW()),
|
(1, 'PS_LANG_DEFAULT', '1', NOW(), NOW()),
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ class BlockSupplier extends Module
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function hookLeftColumn($params)
|
function hookDisplayLeftColumn($params)
|
||||||
{
|
{
|
||||||
$this->context->smarty->assign(array(
|
$this->context->smarty->assign(array(
|
||||||
'suppliers' => Supplier::getSuppliers(false),
|
'suppliers' => Supplier::getSuppliers(false),
|
||||||
@@ -125,12 +125,12 @@ class BlockSupplier extends Module
|
|||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
function hookRightColumn($params)
|
function hookDisplayRightColumn($params)
|
||||||
{
|
{
|
||||||
return $this->hookLeftColumn($params);
|
return $this->hookDisplayLeftColumn($params);
|
||||||
}
|
}
|
||||||
|
|
||||||
function hookHeader($params)
|
function hookDisplayHeader($params)
|
||||||
{
|
{
|
||||||
$this->context->controller->addCSS(($this->_path).'blocksupplier.css', 'all');
|
$this->context->controller->addCSS(($this->_path).'blocksupplier.css', 'all');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,9 +47,9 @@ class FavoriteProducts extends Module
|
|||||||
public function install()
|
public function install()
|
||||||
{
|
{
|
||||||
if (!parent::install()
|
if (!parent::install()
|
||||||
OR !$this->registerHook('myAccountBlock')
|
|| !$this->registerHook('displayMyAccountBlock')
|
||||||
OR !$this->registerHook('extraLeft')
|
|| !$this->registerHook('displayLeftColumnProduct')
|
||||||
OR !$this->registerHook('header'))
|
|| !$this->registerHook('displayHeader'))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!Db::getInstance()->execute('
|
if (!Db::getInstance()->execute('
|
||||||
@@ -74,7 +74,7 @@ class FavoriteProducts extends Module
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hookCustomerAccount($params)
|
public function hookDisplayCustomerAccount($params)
|
||||||
{
|
{
|
||||||
include_once(dirname(__FILE__).'/FavoriteProduct.php');
|
include_once(dirname(__FILE__).'/FavoriteProduct.php');
|
||||||
|
|
||||||
@@ -85,12 +85,12 @@ class FavoriteProducts extends Module
|
|||||||
return $this->display(__FILE__, 'my-account.tpl');
|
return $this->display(__FILE__, 'my-account.tpl');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hookMyAccountBlock($params)
|
public function hookDisplayMyAccountBlock($params)
|
||||||
{
|
{
|
||||||
return $this->hookCustomerAccount($params);
|
return $this->hookDisplayCustomerAccount($params);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hookExtraLeft($params)
|
public function hookDisplayaLeftColumnProduct($params)
|
||||||
{
|
{
|
||||||
include_once(dirname(__FILE__).'/FavoriteProduct.php');
|
include_once(dirname(__FILE__).'/FavoriteProduct.php');
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@ class FavoriteProducts extends Module
|
|||||||
return $this->display(__FILE__, 'favoriteproducts-extra.tpl');
|
return $this->display(__FILE__, 'favoriteproducts-extra.tpl');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hookHeader($params)
|
public function hookDisplayHeader($params)
|
||||||
{
|
{
|
||||||
$this->context->controller->addCSS($this->_path.'favoriteproducts.css', 'all');
|
$this->context->controller->addCSS($this->_path.'favoriteproducts.css', 'all');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user