• Как получить отмеченные доп. услуги доставки в заказе?

    @Almaz_Ilyasov
    Я вот так вывел доп услуги в последнем шаге sale.order.ajax - confirm.php

    $order = \Bitrix\Sale\Order::load($arResult['ORDER']['ID']);
    $shipmentCollection = $order->getShipmentCollection();
    
    foreach ($shipmentCollection as $shipment)
    {
        if ($shipment->isSystem())
            continue;
    
        $shipment_id = $shipment->getId();
        $dileveryId = $shipment->getField("DELIVERY_ID");
        $extraValues = $shipment->getExtraServices();
    
        $extraServicesManager = new \Bitrix\Sale\Delivery\ExtraServices\Manager($dileveryId, "", $extraValues);
        $extraServices = $extraServicesManager->getItems();
    
        foreach($extraServices as $extra)
        {
            $cost = $extra->getCost();
            $name = $extra->getName();
        }
    }
    Ответ написан
    Комментировать