Answer the question
In order to leave comments, you need to log in
How to set custom order properties (Bitrix\Sale\Order, getPropertyCollection())?
Hello.
I am implementing the "Quick Order" functionality for all items in the cart, there is a problem with filling in a custom property when creating an order.
I need to add a property informing that the order is fast.
The documentation describes the methods, but with their help I can not achieve the desired result.
When trying to get a property like this $propertyValue = $collection->getItemById($id);
or like this
$propertyValue = $collection->getItemByOrderPropertyId($propertyId);
$propertyValue = null() $propertyValue = $collection->getItemByIndex($index);
$propertyValue->setField('VALUE', 'Y');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question