Answer the question
In order to leave comments, you need to log in
How to transfer an additional user profile field to the buyer profile in the Business version on Bitrix?
From everything that will be described, I need to implement only a call to one method. At what I apply codes of a call of methods.
I describe in detail to understand the overall picture and features of our online store.
In the USER profile, an additional a field with multiple choice, so that the buyer can choose from among his consignees (Outlets) the one to which the ordered cargo will be delivered.
In the properties of the order, the property "Consignee" with the code UF_TT_ADRESS was created, which is transmitted in the exchange profile with 1C.
It is necessary that the value of this field be transferred to the field of the BUYER profile.
At the moment, only the field without the required values of the authorized user is displayed.
So far, I have made some progress towards solving this problem.
There is a script that displays an array of all consignees
<?
global $USER;
$arFilter = array("ID" => $USER->GetID());
$arParams["SELECT"] = array("UF_TT_ADRESS");
$arRes = CUser::GetList($by,$desc,$arFilter,$arParams);
if ($res = $arRes->Fetch()) {
?><select>
<option><? print_r($res["UF_TT_ADRESS"])?></option>
</select><?
}
?>
<?
$arFields = array(
"ORDER_PROPS_ID" => 45
);
CSaleOrderUserPropsValue::Add($arFields);
?>
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