• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/component/variationform.php
  • Класс: BitrixCatalogComponentVariationForm
  • Вызов: VariationForm::getPriceFieldValue
protected function getPriceFieldValue(array $field)
{
	if ($field['priceTypeId'] === 'PURCHASING_PRICE')
	{
		return $this->entity->getField('PURCHASING_PRICE');
	}

	$price = $this->entity
		->getPriceCollection()
		->findByGroupId($field['priceTypeId'])
	;

	return $price ? $price->getPrice() : null;
}