• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/compatible/discountcompatibility.php
  • Класс: BitrixSaleCompatibleDiscountCompatibility
  • Вызов: DiscountCompatibility::setBasketItemBasePrice
static function setBasketItemBasePrice($code, $price, $currency)
{
	if (!self::$init)
		self::init();
	if (!self::isSuccess() || self::$useMode == self::MODE_SYSTEM || self::$useMode == self::MODE_DISABLED)
		return;
	/** @noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection */
	self::$basketBasePrice[$code] = (
		$currency == self::$config['CURRENCY']
		? $price
		: CCurrencyRates::convertCurrency($price, $currency, self::$config['CURRENCY'])
	);
}