The WooCommerce settings allow you to show prices including OR excluding tax. But what if we want to show both at the same time e.g. “$100 inc. tax – $89 ex. tax”?
Yes, in theory you could add a WooCommerce suffix via the settings, but unfortunately WooCommerce wraps such suffix in a “small” HTML tag and therefore the whole content is smaller in size, including the second price.
In this tutorial, we’ll see how to add a suffix via PHP instead, and specifically at how to add the price including tax if your store displays prices excluding tax. Enjoy!
My dev site has the following settings: (1) display prices without tax (2) standard tax rate of 22%. With the snippet below, I’ve managed to add the “ex. TAX – $PRICE inc. TAX” suffix.
PHP Snippet: Display Prices With + Without Tax @ WooCommerce Frontend