A
A
Aricus2022-02-07 16:10:00
1C-Bitrix
Aricus, 2022-02-07 16:10:00

How to get payer data by user ID or order ID in 1C-Bitrix?

I have an order ID, an ID of the user who made this order, and a payer type. I need to somehow get the payer's data, they are also details. Not necessarily the payer of this order: the user in this thread will have one. Specifically, you need a TIN and a contact person in the case of a legal entity, or full name in the case of an individual. Tell me, please, how? And yes, I googled: it doesn't work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zzpro, 2022-02-07
@Aricus

CModule::IncludeModule('sale');
$arFilter =Array (
        "ORDER_ID" => 14415, // Номер заказа
    );
    $db_sales_ord = CSaleOrderPropsValue::GetList(array(), $arFilter);
    while ($ar_salesord = $db_sales_ord->Fetch())
    {
        echo '<pre>';print_r($ar_salesord);echo '</pre>';
    }

Displays all order fields

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question