Answer the question
In order to leave comments, you need to log in
How to insert custom property in $order->setFields?
How to insert custom field previously created in store->order_properties ?
$order = Bitrix\Sale\Order::create('s1', $arUser['ID']);
$order->setPersonTypeId(1);
$order->setBasket($basket);
$order->setFields([
'FIELD' => 'VALUE',
]);
Answer the question
In order to leave comments, you need to log in
No way. To do this, there is a collection of order properties getPropertyCollection().
Work with an order.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question