Skip to content

Commit

Permalink
Composer update.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisnissle committed Sep 25, 2024
1 parent 65c981f commit 874b17e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 13 additions & 3 deletions src/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,19 @@ function () {
}

private function setup_shipments_integration() {
/**
* Tell the shipment integration whether prices include taxes or not.
*/
add_filter(
'woocommerce_gzd_shipments_is_provider_integration_active',
function ( $is_active, $provider_name ) {
if ( in_array( $provider_name, array( 'dhl', 'deutsche_post' ), true ) ) {
$is_active = true;
}

return $is_active;
},
10,
2
);

add_filter(
'woocommerce_gzd_shipments_additional_costs_include_tax',
function () {
Expand Down

0 comments on commit 874b17e

Please sign in to comment.