• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/model/price.php
  • Класс: BitrixCatalogModelPrice
  • Вызов: Price::loadProductBasePrices
static function loadProductBasePrices($productId)
{
	self::$productPrices = [
		$productId => []
	];
	$iterator = CatalogPriceTable::getList([
		'select' => ['ID', 'PRICE', 'CURRENCY', 'QUANTITY_FROM', 'QUANTITY_TO'],
		'filter' => ['=PRODUCT_ID' => $productId, '=CATALOG_GROUP_ID' => self::$basePriceType]
	]);
	while ($row = $iterator->fetch())
		self::$productPrices[$productId][self::getPriceIndex($row)] = $row;
	unset($row, $iterator);
}