• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/discount/result/compatibleformat.php
  • Класс: BitrixSaleDiscountResultCompatibleFormat
  • Вызов: CompatibleFormat::getDiscountDescription
static function getDiscountDescription(array $stepResult)
{
	$result = array();
	if (!empty($stepResult['BASKET']))
	{
		$result['BASKET'] = array(
			0 => DiscountFormatter::prepareRow(
				DiscountFormatter::TYPE_SIMPLE,
				Loc::getMessage('BX_SALE_DISCOUNT_MESS_SIMPLE_DESCRIPTION_BASKET')
			)
		);
	}
	if (!empty($stepResult['DELIVERY']))
	{
		$result['DELIVERY'] = array(
			0 => DiscountFormatter::prepareRow(
				DiscountFormatter::TYPE_SIMPLE,
				Loc::getMessage('BX_SALE_DISCOUNT_MESS_SIMPLE_DESCRIPTION_DELIVERY')
			)
		);
	}
	if (empty($result))
	{
		$result['BASKET'] = array(
			0 => DiscountFormatter::prepareRow(
				DiscountFormatter::TYPE_SIMPLE,
				Loc::getMessage('BX_SALE_DISCOUNT_MESS_SIMPLE_DESCRIPTION_UNKNOWN')
			)
		);
	}

	return $result;
}