Answer the question
In order to leave comments, you need to log in
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(),
));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question