$dctPoint = $oo->getDeliveryPoint();
if ($dctPoint) {
//$oo-> getDeliveryCosts();
$service = Services::getService($dctPoint['SERVICE']);
$dctDeliveryCosts = $service->getDeliveryCosts($dctPoint['SERVICEDATA'],$weight,$arSize,$orderPrice);
if ($dctDeliveryCosts['PRICE'] > 0) {
$result->setDeliveryPrice($dctDeliveryCosts['PRICE']);
if ($dctDeliveryCosts['DELIVERY_PERIOD'] > 0)
$result->setPeriodDescription(\Minisol\Multidelivery\Util::inclineNum(
$dctDeliveryCosts['DELIVERY_PERIOD'],
[
Loc::getMessage('MINISOL_M_MULTIDELIVERY_HANDLER_DAY1'),
Loc::getMessage('MINISOL_M_MULTIDELIVERY_HANDLER_DAY2'),
Loc::getMessage('MINISOL_M_MULTIDELIVERY_HANDLER_DAY10')
],
true
));
}
}
К сожалению, с php так не прокатит.
Блин. Спасибо. Добавьте ответом тогда.