Answer the question
In order to leave comments, you need to log in
How to make an exception for 1c bitrix user?
Good afternoon!
How to make an exception if the user registers by filling in the fields in the order on the checkout page
//создаём профиль
//PERSON_TYPE_ID - идентификатор типа плательщика, для которого создаётся профиль
$arProfileFields = array(
"USER_ID" => $arFields['ID'],
"NAME" => $arFields['NAME'],
"PERSON_TYPE_ID" => 1
);
{
$PROFILE_ID = CSaleOrderUserProps::Add($arProfileFields);
//если профиль создан
перед $PROFILE_ID = CSaleOrderUserProps::Add($arProfileFields);
Answer the question
In order to leave comments, you need to log in
I didn’t quite understand the question, but ...
1. Save the necessary things at the stage you need (in session data, for example)
2. Do a check in the registration / checkout component
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question