add/remove events in update
This commit is contained in:
parent
85492e39bd
commit
95dbf4120d
1 changed files with 6 additions and 5 deletions
|
@ -1142,12 +1142,7 @@ class UpdateSubscribe
|
|||
|
||||
RegisterModuleDependences('main', 'OnAfterUserRegister', 'intaro.retailcrm', 'RetailCrmEvent', 'OnAfterUserRegister');
|
||||
RegisterModuleDependences('main', 'OnAfterUserAdd', 'intaro.retailcrm', 'RetailCrmEvent', 'OnAfterUserAdd');
|
||||
RegisterModuleDependences('sale', 'OnSaleOrderSaved', 'intaro.retailcrm', 'RetailCrmEvent', 'orderSave', 99);
|
||||
|
||||
if (Option::get('intaro.retailcrm', 'loyalty_program_toggle') !== 'Y') {
|
||||
$loyalty = new LoyaltyInstaller();
|
||||
$loyalty->deleteLPEvents();
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
@ -1187,6 +1182,12 @@ function update()
|
|||
Loader::includeModule('highloadblock');
|
||||
|
||||
COption::SetOptionString('intaro.retailcrm', 'api_version', 'v5');
|
||||
RegisterModuleDependences('sale', 'OnSaleOrderSaved', 'intaro.retailcrm', 'RetailCrmEvent', 'orderSave', 99);
|
||||
|
||||
if (Option::get('intaro.retailcrm', 'loyalty_program_toggle') !== 'Y') {
|
||||
$loyalty = new LoyaltyInstaller();
|
||||
$loyalty->deleteLPEvents();
|
||||
}
|
||||
}
|
||||
|
||||
function createCustomPropertyFile()
|
||||
|
|
Loading…
Add table
Reference in a new issue