Skip to content

Instantly share code, notes, and snippets.

@WooForce
Created December 1, 2016 05:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WooForce/5a3614171178d838b8e409f3e2e339b2 to your computer and use it in GitHub Desktop.
Save WooForce/5a3614171178d838b8e409f3e2e339b2 to your computer and use it in GitHub Desktop.
UPS - Print order note with label
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