• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/discount/discountmanager.php
  • Класс: BitrixCatalogDiscountDiscountManager
  • Вызов: DiscountManager::getPriceDataByProductId
static function getPriceDataByProductId(int $productId, int $catalogGroupId): ?array
{
	if (!isset(self::$preloadedPriceData[$productId.'-'.$catalogGroupId]))
	{
		self::$preloadedPriceData[$productId.'-'.$catalogGroupId] = null;
		self::preloadPriceData([$productId], [$catalogGroupId]);
	}
	return self::$preloadedPriceData[$productId.'-'.$catalogGroupId];
}