Created
June 12, 2018 13:01
-
-
Save hedqvist/0600b24d2b979c8738efeb25e938ad24 to your computer and use it in GitHub Desktop.
Dont copy remarks to invoice
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
| <?php | |
| /** | |
| * @snippet WooCommerce - Fortnox plugin by Redlight Media - Dont copy remarks | |
| * @author Redlight Media AB / Christopher Hedqvist | |
| * @compatible WooCommerce 3.2.5 | |
| */ | |
| function redlight_fortnox_dont_copy_remarks( $orderData, $order_id) { | |
| $orderData['Order']['CopyRemarks'] = false; | |
| return $orderData; | |
| } | |
| add_filter('obj_fortnox_order_data', 'redlight_fortnox_dont_copy_remarks', 20, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment