• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/component/element.php
  • Класс: BitrixIblockComponentElement
  • Вызов: Element::getTemplateSkuPropList
public function getTemplateSkuPropList()
{
	$skuPropList = array();

	if ($this->arResult['MODULES']['catalog'] && !empty($this->arParams['IBLOCK_ID']))
	{
		$sku = CCatalogSku::GetInfoByProductIBlock($this->arParams['IBLOCK_ID']);
		$iblockParams = $this->storage['IBLOCK_PARAMS'][$this->arParams['IBLOCK_ID']];
		$boolSku = !empty($sku) && is_array($sku);
		if ($boolSku && !empty($iblockParams['OFFERS_TREE_PROPS']) && $this->arParams['PRODUCT_DISPLAY_MODE'] === 'Y')
		{
			$this->storage['SKU_IBLOCK_INFO'] = $sku;

			$skuPropList = CIBlockPriceTools::getTreeProperties(
				$sku,
				$iblockParams['OFFERS_TREE_PROPS'],
				array(
					'PICT' => $this->arResult['DEFAULT_PICTURE'],
					'NAME' => '-'
				)
			);

			if (empty($skuPropList))
			{
				$this->arParams['PRODUCT_DISPLAY_MODE'] = 'N';
			}
		}
	}

	return $skuPropList;
}