Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Ryan Ray, a11n

    (@ryanr14)

    Hi @alichakery,

    This will take some custom code, just to be clear upfront. 🙂

    From that previous thread, it was recommended to create a template override in your theme or child theme which will be used by your site instead of the default template in WooCommerce. There is always also the potential to just use an existing hook to add in your own function that displays the tax rate using WC_Tax::get_rate_percent.

    It depends on where specifically you’d like to show the rate what hooks or then templates you would override.

    Either way, if this sounds like it’d be over your head we’d always recommend using the resources on our customizations page.

    Thread Starter A.Ch

    (@alichakery)

    @ryanr14,

    Thank you for your reply.

    Would you please mention if I would like to use my functions file, what should I add to get the percentage in the Checkout page?

    Thank you

    Thread Starter A.Ch

    (@alichakery)

    I was searching and came up with this code however, its for making a shortcode for the product page.

    What I want is to replace VAT/TAX in the checkout page to (for example) %20 VAT.

    Thank you again.

    function woocommerce_template_display_tax() {
    global $product;
    $tax_rates = WC_Tax::get_rates( $product->get_tax_class() );
    if (!empty($tax_rates)) {
        $tax_rate = reset($tax_rates);
        echo sprintf(_x('Price without %.2f %% tax', 'Text for tax rate. %.2f = 
        tax rate', 'wptheme.foundation'), $tax_rate['rate']);
        }
     }
    add_shortcode('display_tax', 'woocommerce_template_display_tax');
    Thread Starter A.Ch

    (@alichakery)

    Any updates ?

    Can anyone help please so that I can make it work ?

    Thanks in advanced !

    I have the same problem …

    This is a huge limitation of Woocommerce which is completely against DACH region’s financial law (Germany, Austria and Swiss)

    Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    Hi @alichakery,

    Would you please mention if I would like to use my functions file, what should I add to get the percentage in the Checkout page?

    As mentioned before, this indeed requires some custom coding – which goes beyond the scope of support we are able to provide in this forum.

    If you do require more help with the actual coding, we’d recommend you hire a developer who can take a look at this, quote you for their services and help you add this feature to your site. The WooCommerce customizations page has some useful links for you to contact a developer who can help.

    Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Showing TAX Percentage in Checkout page’ is closed to new replies.