R
R
RecentForce992022-04-08 04:04:19
1C-Bitrix
RecentForce99, 2022-04-08 04:04:19

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

1 answer(s)
N
no_one_safe, 2022-04-08
@no_one_safe

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 question

Ask a Question

731 491 924 answers to any question