Documentation

calculate

\Bitrix\Sale\Delivery\CalculationResult public
\Bitrix\Sale\Delivery\Services\Base::calculate(
 \Bitrix\Sale\Shipment $shipment.,
 array $extraServices.
);

Method calculates a delivery price. Static method.

Parameters

ParameterDescriptionVersion
$shipment.Instance of class \Bitrix\Sale\Shipment.
$extraServices.Array with additional services of type array($service1Id => $service1Value, $service2Id => $service2Value, .....).

EXAMPLE



© «Bitrix24», 2001-2024
Up