A
A
Andrey Korekhov2020-09-07 15:02:40
1C-Bitrix
Andrey Korekhov, 2020-09-07 15:02:40

Can you suggest an API method to populate the "enumeration type" order property?

Good afternoon.
Tell me the method by which you can fill in a list of type enumeration.
I mean the property in the admin panel at the address

Shop -> settings -> Order properties -> List of properties - a specific property.

I have a list of cities (not Russia) under 400 pieces and filling them in manually is very tiring.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PetrPo, 2020-09-08
@Haotik

link
ORDER_PROPS_ID, NAME and VALUE - required fields
It is written that the method is non-static, I also see from the sources that it is not static, but the example in the docks is static.
The correct way should be:
$ob = new CSaleOrderPropsVariant;
$ob->Add($arFields);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question