• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/discount/analyzer.php
  • Класс: BitrixSaleDiscountAnalyzer
  • Вызов: Analyzer::tryToFindAppliedCondition
private function tryToFindAppliedCondition(array $discount)
{
	if (isset($discount['ACTIONS']) && is_string($discount['ACTIONS']))
	{
		return mb_strpos($discount['ACTIONS'], CSaleActionCondCtrlBasketFields::CONTROL_ID_APPLIED_DISCOUNT) !== false;
	}

	if (isset($discount['ACTIONS_LIST']))
	{
		$asString = serialize($discount['ACTIONS_LIST']);
		if ($asString)
		{
			return mb_strpos($asString, CSaleActionCondCtrlBasketFields::CONTROL_ID_APPLIED_DISCOUNT) !== false;
		}
	}

	//it means that there are not ACTIONS or ACTIONS_LIST. So, we can't solve this and decide, that we found condition.
	//after that this discount will be marked as EXECUTE_MODE=GENERAL
	return null;
}