Answer the question
In order to leave comments, you need to log in
How to catch the completion of unloading the directory from 1s to the site?
I unload a user directory from 1s and want to track the completion of this event.
Previously, to track the unloading of goods, I used the OnSuccessCatalogImport1C event in the following way:
AddEventHandler("catalog", "OnSuccessCatalogImport1C", "DSOnSuccessCatalogImport1C");
function DSOnSuccessCatalogImport1C(){
AddMessage2Log("WORK!");
}
Answer the question
In order to leave comments, you need to log in
Understood. Source .
use Bitrix\Main;
use Bitrix\Main\Entity;
$eventManager = Main\EventManager::getInstance();
$eventManager->addEventHandler("", "TransactionOnBeforeUpdate", "TransactionBeforeUpdate");
function TransactionBeforeUpdate(Entity\Event $event)
{
echo "<pre>";
$arParameters = $event->getParameters();
var_dump($arParameters);
return 1;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question