Answer the question
In order to leave comments, you need to log in
How to link an additional field in a user profile with an order property?
In the additional field of the user profile, I created the "Consignee" field with a choice. Entered a specific consignee.
Created an order property with type [SELECT] List.
I tied this property in the exchange profile with 1C.
But how to connect the additional field "Consignee" with the property of the order "Consignee", I can't understand?
I created an additional field "Consignee" with multiple selection. Entered several addresses for verification.
Also created a name with a similar name "Consignee" in the properties of the order.
But when placing an order, the list of user addresses does not appear in the drop-down window.
How can they be linked by adding an order property field with the "Included in the profile" parameter with the corresponding field "Consignee"
Answer the question
In order to leave comments, you need to log in
What an interesting feature with an "expert" invite.
It seems to me that you are confusing the profile from the store with additional user properties.
I understand correctly that you want to link something from this link /bitrix/admin/user_edit.php?lang=ru&ID=1 from the Additional tab. fields and this link /bitrix/admin/sale_order_props.php?lang=ru (add the base URL of your site to the beginning of each link)?
Found the output code for the user's additional field.
Now you need to link it to the desired field in the buyer profile.
<?
global $USER;
$arFilter = array("ID" => $USER->GetID());
$arParams["SELECT"] = array("UF_TT_ADRESS");
$arRes = CUser::GetList($by,$desc,$arFilter,$arParams);
if ($res = $arRes->Fetch()) {
?><? print_r($res["UF_TT_ADRESS"])?><?
}
?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question