Answer the question
In order to leave comments, you need to log in
How to add values to the Tags property in Bitrix?
CModule::IncludeModule("iblock");
$el = new CIBlockElement;
$arLoadProductArray = Array(
"IBLOCK_ID" => 1,
"NAME" => $_POST["NAME_COMPANY"],
"TAGS" => $POST["TAGS"]
);
if($PRODUCT_ID = $el->Add($arLoadProductArray))
echo "<p class=\"ok\">New ID: ".$PRODUCT_ID."</p>";
else
echo "<p class=\"error\">Error: ".$el->LAST_ERROR."</p>";
Answer the question
In order to leave comments, you need to log in
you have a typo in your code. should be written instead . And the CIBlockElement::Add method is used correctly $POST["TAGS"]
$_POST["TAGS"]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question