Created
June 9, 2015 06:58
-
-
Save DmitryDmitrienko/a31501cfdfb0a7423d8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* code -- название товара | |
*/ | |
function parseExtraFieldsCode($code){ | |
$arSelect = Array("ID", "IBLOCK_ID", "PROPERTY_extra_fields"); | |
$arFilter = Array("IBLOCK_ID"=>8, "ACTIVE"=>"Y", "CODE"=>$code); | |
$res = CIBlockElement::GetList(Array(), $arFilter, array("PROPERTY_extra_fields"), Array("nPageSize"=>50), $arSelect); | |
$data = $res->NavStart(1); | |
$ob = $res->GetNextElement(); | |
$arFields = $ob->GetFields(); | |
$arData = explode("|", $arFields["PROPERTY_EXTRA_FIELDS_VALUE"]["TEXT"]); | |
return $arData; | |
} | |
}?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment