K
K
Kirill Gorelov2021-05-31 09:21:13
1C-Bitrix
Kirill Gorelov, 2021-05-31 09:21:13

How to pass the shipping cost to the order from the CDEK widget?

How to pass the shipping cost to the order from the widget?
And what would the shipping cost be added to the total cost?

$shipmentCollection = $order->getShipmentCollection();
  $shipment = $shipmentCollection->createItem();

  $shipment->setFields(array(
    'DELIVERY_ID' => $delivery_id['ID'],
    'DELIVERY_NAME' => $delivery_id['NAME'],
    'CURRENCY' => $order->getCurrency(),
    ));


But nowhere is there an opportunity to indicate the cost that I receive from the order form ....
Because from there I just receive the delivery amount .... But I don’t understand how to transfer it to the order .....

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question