Skip to content

Instantly share code, notes, and snippets.

@hedqvist
Created June 30, 2022 11:52
Show Gist options
  • Save hedqvist/ac56baa7e569e306c15d807f6cfc4feb to your computer and use it in GitHub Desktop.
Save hedqvist/ac56baa7e569e306c15d807f6cfc4feb to your computer and use it in GitHub Desktop.
Fortnox - Dont send over Remarks (Customer note)
<?php
/**
* @snippet WooCommerce - Fortnox plugin by Redlight Media - Dont send remarks to fortnox
* @author Redlight Media AB / Christopher Hedqvist
* @compatible WooCommerce 6.0.0
*/
function redlight_fortnox_dont_send_remarks( $orderData, $order_id) {
$orderData['Order']['CopyRemarks'] = false;
$orderData['Order']['Remarks'] = "";
return $orderData;
}
add_filter('obj_fortnox_order_data', 'redlight_fortnox_dont_send_remarks', 20, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment