Documentation

getOnApplyErrorMessage

public static function
\Bitrix\Sale\Services\Base\Restriction::getOnApplyErrorMessage();

Method returns string with error text. This method is called, if an error occurs when applying a restriction (save method call for a restriction class).

Error text depends on location and can be printed differently. Let's say, a standard limit error occurred in site's public section when adding a payment system - the page will show red-colored text, received from this method.

Parameters

No parameters.



© «Bitrix24», 2001-2024
Up