Created
January 23, 2020 10:43
-
-
Save hedqvist/57e7c81209cc0e83bfa4ea5db8337a7b to your computer and use it in GitHub Desktop.
Unifaun - Customs Declaration type - Gift
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 -Unifaun - Set Customs importExportType | |
| * @author Redlight Media AB / Christopher Hedqvist | |
| * @compatible WooCommerce 3.9.0 | |
| */ | |
| function redlight_unifaun_customs_type( $customsDeclaration, $shipment, $order_id) { | |
| //$order = new WC_Order($order_id); | |
| $customsDeclaration['importExportType'] = 'gift'; | |
| return $customsDeclaration; | |
| } | |
| add_filter('ac_wc_unifaun_shipment_customs_declaration', 'redlight_unifaun_customs_type', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment