A
A
Andrey2017-05-26 22:01:58
CMS
Andrey, 2017-05-26 22:01:58

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);

it is necessary to set the condition that if the user already has a delivery profile, then do not create it,
how can this be implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Petrov, 2017-05-27
@t3h_l3w1z

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 question

Ask a Question

731 491 924 answers to any question