WooCommerce fixed pricing, but variable tax depending on country (API)
Budget: €30 – €250 EUR
I am trying to sell products for a fixed price, let's say a $ 100. I enter the prices including VAT in WooCommerce.
Since we live in Europe every country has a different tax percentage. E.g. Germany 19%, Austria 20% and so on.
Our goal is to always charge the full $ 100. The tax should adjust to the price. I found a function to achieve that directly in the shop with the following line of code:
add_filter( 'woocommerce_adjust_non_base_location_prices', '__return_false' );
This works perfectly, but only if you buy directly on the page.
If you import orders via the WooCommerce API, the prices adjusts to the tax percentage. The price should always be $ 100.
Since we live in Europe every country has a different tax percentage. E.g. Germany 19%, Austria 20% and so on.
Our goal is to always charge the full $ 100. The tax should adjust to the price. I found a function to achieve that directly in the shop with the following line of code:
add_filter( 'woocommerce_adjust_non_base_location_prices', '__return_false' );
This works perfectly, but only if you buy directly on the page.
If you import orders via the WooCommerce API, the prices adjusts to the tax percentage. The price should always be $ 100.