Answer the question
In order to leave comments, you need to log in
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
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>';
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question