pascal93
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Net and Gross Prices (Set-Up)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 ??
Thank you for the code @vupdraft!
I have pasted the code into the functions.php of our child theme. Unfortunately, it did not work and the customers are still redirected to the backend-login-page. Do you have any idea what could be the problem? Is there any other way to solve this issue?
edit: Maybe the problem is that the clients do not intentionally “log out”, since it is a session timeout instead.
- This reply was modified 2 years, 7 months ago by pascal93.
Forum: Plugins
In reply to: [WooCommerce] WooCommerce Customer Login redirects to WP-Backend-LoginHi @hegenberg,
thank you. We submitted a ticket at WooCoommerce.com with the status.