S
S
symply_rabbit2018-06-08 14:56:41
1C-Bitrix
symply_rabbit, 2018-06-08 14:56:41

Why do I receive empty form fields in the mail?

The data is sent to the mail to the admin after the form is filled out. but all form fields come up empty except for the name! in the mail template #NAME# - client's name
#PHONE# - client's phone number
in the Internet using the event OnAfterIBlockElementAdd
AddEventHandler("iblock", "OnAfterIBlockElementAdd", Array("MyClass3", "OnAfterIBlockElementAddHandler"));
class MyClass3
{
function OnAfterIBlockElementAddHandler(&$arFields)
{
$arEventFields= array(
"NAME" => $arFields["NAME"],
"PHONE" => $arFields["PROPERTY_VALUES"][118],
);
CEvent::Send("ORDER_FINE", s1, $arEventFields, "N", 8);
and it still comes up empty. property type string. how to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
symply_rabbit, 2018-06-08
@symply_rabbit

All stupid question removed. the result of var_dump is in the console, there are fields, they are just written not with IDs but with code, $arFields["PROPERTY_VALUES"]["PHONE"]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question