Created
December 1, 2016 05:50
-
-
Save WooForce/5a3614171178d838b8e409f3e2e339b2 to your computer and use it in GitHub Desktop.
UPS - Print order note with label
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
add_filter('wf_ups_shipment_confirm_request_data', 'alter_shipment_request1', 10, 3); | |
function alter_shipment_request1($data, $order){ | |
if(!empty($order->customer_message)){ | |
$data['Shipment']['Description'] = $order->customer_message; | |
} | |
return $data; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment