// hook updateProduct is now deprecated

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13790 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2012-03-01 14:29:10 +00:00
parent 1761520097
commit 3ca2975a6c
+7
View File
@@ -77,6 +77,7 @@ class MailAlerts extends Module
!$this->registerHook('actionProductDelete') ||
!$this->registerHook('actionProductAttributeDelete') ||
!$this->registerHook('actionProductAttributeUpdate') ||
!$this->registerHook('actionProductUpdate') ||
!$this->registerHook('displayHeader'))
return false;
@@ -443,6 +444,12 @@ class MailAlerts extends Module
MailAlert::sendCustomerAlert((int)$result['id_product'], (int)$params['id_product_attribute']);
}
public function hookActionProductUpdate($params)
{
// @deprecated 1.5.x
Tools::displayAsDeprecated();
}
public function hookDisplayCustomerAccount($params)
{
return $this->_customer_qty ? $this->display(__FILE__, 'my-account.tpl') : null;