export->getShipmentData([$shipment_id], $order); $deliveryOptions = WCPOST_Admin::getDeliveryOptionsFromOrder($order); $option_strings = [ "signature" => __("Signature on delivery", "woocommerce-postnl"), "only_recipient" => __("Only recipient", "woocommerce-postnl"), ]; $firstShipment = $shipments[$shipment_id]; /** * Show options only for the first shipment as they are all the same. */ $insurance = Arr::get($firstShipment, "shipment.options.insurance"); $labelDescription = Arr::get($firstShipment, "shipment.options.label_description"); echo ''; echo "
"; /** * Do show the Track & Trace status for all shipments. */ foreach ($shipments as $shipment_id => $shipment) { $trackTrace = Arr::get($shipment, "track_trace"); /** * Show Track & Trace status. */ if (! $trackTrace) { continue; } printf( '%3$s
%1$s: %4$s
', __("Status", "woocommerce-postnl"), WCPOST_Admin::getTrackTraceUrl($order_id, $trackTrace), $trackTrace, Arr::get($shipment, "status") ); }