Answer the question
In order to leave comments, you need to log in
How to view an array of product data transferred during import from 1C?
In order to undo changes to an element or redefine some fields, we can use the OnBeforeIBlockElementUpdate event.
Sometimes this is required to be done during the unloading of goods from 1C. To do this, we listen for an event in init.php.
AddEventHandler("iblock", "OnBeforeIBlockElementUpdate", "DoNotUpdate");
function DoNotUpdate(&$arFields)
{
...
}
Answer the question
In order to leave comments, you need to log in
1. This is far from the first question, it's all about the wrong approach, here, for example, I already answered.
2. The OnBeforeIBlockElementUpdate event is not suitable for this; for stock balances, use the OnStoreProductUpdate and OnStoreProductAdd events. All events of changing/adding prices, main balance, stock balances, etc. are in the Trade catalog module, see the list here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question