5use Bitrix\Catalog\Product\PropertyCatalogFeature;
30 $propertyValues = self::getPropertyValues(
35 $skuPropertyValues = $propertyValues[$sku->
getId()] ?? [];
37 return self::getPropertyDisplayValues($skuPropertyValues);
51 $propertyValues = self::getPropertyValues(
56 $skuPropertyValues = $propertyValues[$sku->
getId()] ?? [];
60 foreach ($skuPropertyValues as $property)
68 $property[
'DISPLAY_VALUE'] = $displayValue;
70 $result[$property[
'CODE']] = $property;
81 private static function getPropertyValues($skuIblockId,
array $skuIds):
array
83 $propertyIds = PropertyCatalogFeature::getOfferTreePropertyCodes($skuIblockId);
84 if ($propertyIds ===
null)
90 \CIBlockElement::GetPropertyValuesArray(
94 [
'ID' => $propertyIds]
97 return $propertyValues;
113 private static function getPropertyDisplayValues(
array $properties): string
117 foreach ($properties as $property)
139 $userType = \CIBlockProperty::GetUserType(
$propertyValue[
'USER_TYPE']);
140 $searchMethod = $userType[
'GetSearchContent'] ??
null;
142 if ($searchMethod && is_callable($searchMethod))
156 if (is_array($value))
158 $value = implode(
', ', $value);
161 $value = trim((
string)$value);
static getPropertyDisplayValue(array $propertyValue)
static getSkuPropertyDisplayValues(BaseSku $sku)
static getPropertyValuesBySku(BaseSku $sku)
static getSkuPropertyDisplayValuesMap(BaseSku $sku)
</td ></tr ></table ></td ></tr ><?endif?><? $propertyIndex=0;foreach( $arGlobalProperties as $propertyCode=> $propertyValue
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)