K
K
katya_miro19922021-04-24 11:35:54
1C-Bitrix
katya_miro1992, 2021-04-24 11:35:54

How can I find out what is in the $orderFields fields of the OnOrderSave handler?

I'm writing an OnOrderSave event handler and can't figure out how to find out what's in the $arFields and $orderFields fields. I looked at the documentation , but there is no detailed information

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PetrPo, 2021-04-24
@katya_miro1992

In your handler

\Bitrix\Main\Diag\Debug::writeToFile($arFields, 'fields', '/sale_log.txt');

after calling the handler, a file will appear in the root

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question