Hi @paddletroke,
The thread was closed because it has been inactive for seven months. After reviewing your initial request, if your goal is to maintain a fixed price for products across all countries while displaying the tax breakdown based on each country’s VAT percentage, this is achievable in WooCommerce with the right tax settings.
Step 1: Configure Tax Options
- Go to WooCommerce → Settings → Tax.
- Set “Prices entered with tax” to “Yes, I will enter prices inclusive of tax”.
- This ensures that the set price (e.g., 100€) already includes VAT, regardless of the customer’s location.
- Set “Calculate tax based on” to “Customer shipping address” (or billing address if preferred).
- Set “Display prices in the shop” and “Display prices during cart and checkout” to “Including tax”.
Step 2: Define Tax Rates
- Go to WooCommerce → Settings → Tax → Standard rates.
- Add tax rates for each country:
- Germany: Country Code:
DE, Rate: 19%
- Finland: Country Code:
FI, Rate: 24%
- USA: Country Code:
US, Rate: 0%
- Ensure tax rates apply to all product categories.
Since prices are entered inclusive of tax, WooCommerce will automatically adjust the net price based on the applicable tax rate while keeping the total price at 100€.
For example:
- Germany (19%): Net Price = 84.03€, VAT = 15.97€, Total = 100€
- Finland (24%): Net Price = 80.65€, VAT = 19.35€, Total = 100€
- USA (0%): Net Price = 100€, VAT = 0€, Total = 100€
This configuration ensures that customers always pay the same amount, with tax adjustments managed on your end. Let me know if you need further clarification.
This is a CHATGPT generated answer. And this is an hallucination. It is wrong.
If you try to follow the very steps you describe, you will find something very different:
- France (20%): VAT = 16.67€, Total = 100.00€
- Germany (19%): VAT = 15.83€, Total = 99.16€
- Finland (24%): VAT = 19.35€, Total = 104.58€
- USA (0%): VAT = 0€, Total = 83.33€
Thanks for the unverified, untested, chatgpt answer that had me loose time reading it.
-
This reply was modified 1 year, 3 months ago by
paddletroke.
Hi @paddletroke,
I’d like to clarify that my previous response wasn’t generated by ChatGPT—it was a response I personally wrote and saved, as many users often ask similar questions. Having well-thought-out responses for frequently asked queries helps provide clear and consistent support.
To better understand your settings, please share a link to your site so I can test it directly. Additionally, provide screenshots of the following pages:
- WooCommerce > General settings
- WooCommerce > Settings > Tax
- Tax rates you’ve set (Standard, Reduced, and Zero rate pages)
Also, please share your system status report from WooCommerce > Status > Get report > Copy for support.
One thing that stands out is that, despite setting 0% tax for the US, your total still shows 83.33€, which suggests tax is still being applied based on your current settings. Let’s investigate this further.
Most shops around the world offer a fixed price accross countries. You never see a procuct that is 3.99€ in france, then 4.24€ in Finland and 3.88€ in Germany. This is riciculous.
This is achievable in WooCommerce with the following filter:
add_filter( 'woocommerce_adjust_non_base_location_prices', '__return_false' );
This code indeed fix this issue. Based on the name of the object, it seems that this price adjustment is actually a feature. I don’t know how such a feature got merged without even an option on the tax page.
Btw if someone needs instruction how to install this filter here’s what ChatGPT advice :
How to Apply This Filter in WooCommerce:Option 1: Add the Filter to Your Theme’s functions.php
- Go to your WordPress admin panel.
- Navigate to Appearance → Theme File Editor.
- On the right side, find and click on
functions.php.
- Add the following line at the end of the file:phpCopierModifier
add_filter( 'woocommerce_adjust_non_base_location_prices', '__return_false' );
- Click Update File.
Option 2: Use a Custom Plugin (Safer for Updates)
If you prefer not to modify your theme directly (to avoid losing changes during updates), you can create a small plugin:
- In your WordPress admin, go to Plugins → Add New → Upload Plugin.
- Create a new folder on your computer and inside it, create a file called
fix-woocommerce-pricing.php.
- Paste the following code inside:phpCopierModifier
<?php /** * Plugin Name: WooCommerce Fixed Price Across Countries * Description: Prevents WooCommerce from adjusting prices based on customer location. * Version: 1.0 * Author: Your Name */ add_filter( 'woocommerce_adjust_non_base_location_prices', '__return_false' );
- Zip the folder and upload it via the Plugins section in WordPress.
- Activate the plugin.
This ensures WooCommerce does not modify prices based on the customer’s location.
I tested the version with the custom plugin and it works great
Zee
(@doublezed2)
Hello paddletroke,
Thank you for your reply.
I am glad to know that you have resolved the issue.
I appreciate you for sharing the solution here.
Have a great day!