hey florian,

i want to use this function. i am facing the problem, that in EU countries it works, but when shipping to a non EU-country (like switzerland) it does not use the 0% tax i have set up.

i found a function for this, but then facing the prolem that it does not work proper in EU countries (sight)

add_action( 'woocommerce_cart_calculate_fees', 'same_price_for_eu' );
function same_price_for_eu(){

$countries = new WC_Countries();

$eu_countries = $countries->get_european_union_countries();

if ( in_array( WC()->customer->get_shipping_country(), $eu_countries) ){
add_filter( 'woocommerce_adjust_non_base_location_prices', '__return_false');

} else {
remove_filter( 'woocommerce_adjust_non_base_location_prices', '__return_false');

}
}
any ideas? i try to use add_action( 'woocommerce_before_calculate_totals', too but does not work.

sos!

thanks
oli