Last active
August 23, 2016 14:14
-
-
Save WooForce/4d28178ac9480742091a3c418557ccb5 to your computer and use it in GitHub Desktop.
DHL Paket - Add order number to shipment request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wf_dhl_add_customer_reference($shipment_details, $order_id) { | |
//Add customer reference to the shipment request | |
$shipment_details['customerReference'] = 'Order Number : '.$order_id; | |
return $shipment_details; | |
} | |
add_filter('woocommerce_dhl_paket_request', 'wf_dhl_add_customer_reference', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment