• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/component/variationform.php
  • Класс: BitrixCatalogComponentVariationForm
  • Вызов: VariationForm::getPropertyDescription
protected function getPropertyDescription(Property $property): array
{
	$description = parent::getPropertyDescription($property);

	$propertyFeatureOfferTree = $property->getPropertyFeatureCollection()->findByFeatureId('OFFER_TREE');
	$offerTreeParams = $propertyFeatureOfferTree ? $propertyFeatureOfferTree->getSettings() : null;

	if ($offerTreeParams)
	{
		$description['isEnabledOfferTree'] = $offerTreeParams['IS_ENABLED'] === 'Y';
	}

	return $description;
}