M
M
Michael_Mel2019-08-20 11:59:07
1C-Bitrix
Michael_Mel, 2019-08-20 11:59:07

Can an unregistered user place an order in sale.order.ajax?

What settings are needed specifically for an unregistered user? unauthorized works fine.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2019-08-20
@Mihail_Mel

//скрытно регить на этапе оформления
$random = randString(10, array(
  "ABCDEFGHIJKLNMOPQRSTUVWXYZ"
));
$mailusers = $random.'@test.com';
global $USER;  $arResult = $USER->Register($random, $random, "", $random, $random, $mailusers);
ShowMessage($arResult);
$USER->Authorize($USER->GetID());
//на странице завершения заказа в конце
$USER->Logout();

M
Mihail_Mel, 2019-08-20
@Mihail_Mel

how to do it for a guest?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question