method public static

ByPersonType::getOnApplyErrorMessage()

Класс: \Bitrix\Sale\Delivery\Restrictions\ByPersonType

Сигнатура

public static getOnApplyErrorMessage() : string

Описание

Возвращает сообщение, которое отображается при возникновении ошибки во время применения ограничения

Возвращаемое значение

string

Как применяется в ByPersonType

ByPersonType::getOnApplyErrorMessage() — метод класса \Bitrix\Sale\Delivery\Restrictions\ByPersonType модуля «Интернет-магазин».

Статический метод — вызывается через имя класса ByPersonType, без создания объекта.

use Bitrix\Main\Loader;
use Bitrix\Sale\Delivery\Restrictions\ByPersonType;

Loader::includeModule('sale');

$result = ByPersonType::getOnApplyErrorMessage();
// $result: string

Другие методы ByPersonType

getOnApplyErrorMessage() есть и у других классов модуля «Интернет-магазин»: Base, ByConcreteProduct, ByDimensions, ByLocation, ByMaxSize, ByPaySystem, ByPrice, ByProductCategory.

Исходный файл: source/sale/lib/delivery/restrictions/bypersontype.php:49

Что будем искать? Например,Продвижение