Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s2ar/7c77be677f79a898775b to your computer and use it in GitHub Desktop.
Save s2ar/7c77be677f79a898775b to your computer and use it in GitHub Desktop.
Bitrix.Получить.свойство.элемента
<?php
// Получить свойство элемента
$rProp = CIBlockElement::GetProperty($iblock_id, $element_id, "sort", "asc", array("CODE" => "badge"));
$badge = ($aProp = $rProp->GetNext())? $aProp['VALUE'] :'';
@s2ar
Copy link
Author

s2ar commented Apr 19, 2017

$aProp = CIBlockElement::GetProperty(HI_SPECIAL_OFFERS, $iSPid, "sort", "asc", array("CODE" => "URL_POS_PAGE"))->fetch();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment