Last active
May 22, 2020 13:08
-
-
Save hedqvist/b50a65028b4dceafde7b81d53e54db7a to your computer and use it in GitHub Desktop.
Unifaun - Customs value
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 Line Value | |
| * @author Redlight Media AB / Christopher Hedqvist | |
| * @compatible WooCommerce 3.9.0 | |
| */ | |
| function redlight_unifaun_customs_line_value( $line, $shipment, $order, $product, $item ) { | |
| //$order = new WC_Order($order_id); | |
| $line['value'] = '400'; | |
| return $line; | |
| } | |
| add_filter('ac_wc_unifaun_shipment_customs_declaration_line', 'redlight_unifaun_customs_line_value', 10, 5 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment