Y
Y
Yuriy2018-08-13 14:59:35
1C-Bitrix
Yuriy, 2018-08-13 14:59:35

Bitrix Error adding subscription: Do you agree with the terms?

...
$obSubscription = new CSubscription;

        $ID = $obSubscription->Add(array(
               "USER_ID" => $USER_ID,
               "ACTIVE" => "Y",
               "EMAIL" => $EMAIL,
               "FORMAT" => "html",
               "CONFIRMED" => "Y",
               "SEND_CONFIRM" => "N",
               "RUB_ID" => $arRubrics,
            ));
if($ID > 0) {
                CSubscription::Authorize($ID);
            }
            else {
                echo $ID." Error adding subscription: " . $obSubscription->LAST_ERROR . "<br>";
            }

output-> Error adding subscription: Согласитесь с условиями
...

what the hell is this and how to get around this condition? ))

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuriy, 2018-08-13
@yous

by typing added to the form

<input type="hidden" name="licenses_subscribe" value="Y">
everything worked))

A
Alexander, 2018-08-14
Madzhugin @Suntechnic

In general, it should be a checkbox in the form that the user agrees with the terms of personal data processing:

<label><input type="checkbox" name="licenses_subscribe" value="Y"> Я согласен с тем, что мои данные будут переданы во все силовые структуры по требованию и без, проданы в дарквебе для рассылки спама, слиты агрегаторам для таргетирования рекламы, могут и будут использованы против меня в суде. Я согласен вообще на все, ради подписки на эту бесполезную рассылку.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question