Y
Y
Yuri2016-04-25 14:11:48
1C-Bitrix
Yuri, 2016-04-25 14:11:48

Why is the OnOrderSave event not firing?

Good afternoon!
Bitrix 15.5.10.
in init.php I call the following code

AddEventHandler("sale","OnOrderSave","My_OnOrderSave");
function My_OnOrderSave($orderId, $orderFields, $orderData, $isNew)  {
    CWriteLog([$orderId, $orderFields]);
    echo '<pre>';var_dump($orderId,$orderFields); die();
}

But for some reason, the event does not work, like other events from the section https://dev.1c-bitrix.ru/api_help/sale/events/even... the
order is created, redirects to the page about the successful creation of the order, added an entry to the log , it is also empty

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Zakharov, 2016-04-25
@yborschev

Enable deprecated event processing enabled in the settings of the online store module?
Starting from the 15th version, new events are used dev.1c-bitrix.ru/learning/course/index.php?COURSE_...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question