method public static

ByPrice::prepareData()

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

Сигнатура

public static prepareData(array<string|int, mixed> $servicesIds) : bool

Параметры

$servicesIds array<string|int, mixed>

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

bool

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

ByPrice::prepareData() — метод класса \Bitrix\Sale\Delivery\Restrictions\ByPrice модуля «Интернет-магазин». ByPrice: Класс ByWeight Ограничивает доставку по весу.

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

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

Loader::includeModule('sale');

$servicesIds = [];
$result = ByPrice::prepareData($servicesIds);
// $result: bool

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

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

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

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