• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/controller/action/entity/changebasketitemaction.php
  • Класс: BitrixSaleControllerActionEntityChangeBasketItemAction
  • Вызов: ChangeBasketItemAction::getOfferPropertyCodeList
static function getOfferPropertyCodeList(): array
{
	$result = [];

	if (MainLoader::includeModule('iblock') && IblockModelPropertyFeature::isEnabledFeatures())
	{
		$iterator = CatalogCatalogIblockTable::getList([
			'select' => ['IBLOCK_ID'],
			'filter' => ['!=PRODUCT_IBLOCK_ID' => 0],
		]);
		while ($row = $iterator->fetch())
		{
			$list = CatalogProductPropertyCatalogFeature::getOfferTreePropertyCodes(
				$row['IBLOCK_ID'],
				['CODE' => 'Y']
			);

			if (!empty($list) && is_array($list))
			{
				$result[] = $list;
			}
		}

		if ($result)
		{
			$result = array_merge(...$result);
		}
	}

	return $result;
}