L
L
legatobrown2021-02-10 19:22:00
1C-Bitrix
legatobrown, 2021-02-10 19:22:00

Checkout form, how to find out what CODE values ​​are specified in the $arFields array?

I need to know the values ​​of the form fields in the $arFields array, namely the value of the CODE keys. To add fields and register in init.php file.

It is not possible to display the value of the $arFields array, I add the code to the init.php file

$id = intval($_REQUEST["ID"]);
if ( CModule::IncludeModule("iblock") && !empty($id) )
{
    $arSelect = array("ID", "NAME", "PREVIEW_TEXT","CODE");
    $arFilter = array("IBLOCK_ID"=> 25,"SECTION_ID"=>$id);
    $res = CIBlockElement::GetList(Array(), $arFilter, false, false , $arSelect);
    while( $arFields = $res->fetch() )
    {
        echo '<pre>';
        var_dump($arFields);
        echo '</pre>';
    }
}


but I don't see this array output in the checkout page.

Can you please tell me how to find out the values ​​of this array and how to display them on the page? Or in what file could they be assigned CODE values?

Checkout form, how to find out what CODE values ​​are specified in the $arFields array?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question