Hi @pascal93
I am referring to the option in WooCommerce to state whether you are entering prices incl. taxes or excl. taxes
In case of logged in customers it would show the price inclusive of taxes because they have an address set on their account and WooCommerce uses that to calculate taxes.
Whereas in case of guests or logged out customers, there is no address, so WooCommerce cannot calculate anything until they get to the checkout page.
You can solve this by setting WooCommerce to calculate taxes based on the shop address by default, in WP Admin > WooCommerce > Settings > Tax > Tax options > Calculate tax based on > Select – Shop base address.
Here’s the documentation for your reference: https://woocommerce.com/document/setting-up-taxes-in-woocommerce/
I hope this helps!
@margaretwporg
Many thanks for your reply! However, this refers not to the problem we have. It’s difficult to explain, since we use the plugin WooCommerceB2B. But they told us that this is a general “WooCommerce-Issue”, so we thought it’s best to open a discussion here.
Generally, our problem is rather a tax-calculation issue. For our guest customers, we have taxes based on shop base address and prices are set as gross prices (VAT is calculated downwoards) which works very well. It works well, because our guest clients see prices in our shop as gross prices and prices are set as gross prices. So there can be no difference in the subtotals.
However, for logged-in clients who are solely (!) B2B-customers the option “set prices incl. taxes” makes weird subtotals. The difference to guests is that logged-in clients see the prices as net prices. But WooCommerce only gives me on option: either to set prices as net prices or as gross prices (no matter whether the client is a guest or a logged-in b2b-client). What does this mean? We need to enter for a b2b-clients as gross prices, but they are shown later on as net prices in our online shop. If we want them to see prices of 2,25 €, we need to enter a prices of 2,68 € (VAT: 19%).
WooCommerce calculates the price of 2,68 € downwards to a net price of 2,2521… €. So it’s shown as 2,25 € in the shop for a certain product. However, if the client orders this product now 10 times, WooCommerce shows a price of 22,52 € as a subtotal. This problem only occurs since our prices are set as gross prices, but WooCommerce shows net prices for our b2b-clients. We definitely want to maintain net prices for our B2B-clients.
So this is why I am asking, whether it’s possible to override the general rule of WooCommerce whether to set prices incl. or excl. taxes and make it more flexible? So that I am able to change this rule for a certain customer group or logged-in customers, but maintain the way that guest customers’ prices are set as gross prices AND shown as gross prices?
I hope I could explain our issue better. It’s a bit complicated 😀
Hello,
Thanks for writing back!
Combining the options insert prices exclusive of tax with display including tax or the opposite insert prices inclusive of tax with display excluding tax will result in the behavior you’re describing.
Please note that, even though it might seem “weird”, this is the expected behavior. You can read more about how taxes work in WooCommerce here: https://github.com/woocommerce/woocommerce/wiki/How-Taxes-Work-in-WooCommerce
Changing that behavior would require custom coding, which is outside our scope of support. You can see a discussion around that here: https://wordpress.org/support/topic/woocommerce-rounding-issue-with-tax/
Please let us know if we can be of any further assistance.
Best,
We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, the above info was helpful.
If you have other questions, please feel free to open a new topic.