Vat percentage in Invoice | WordPress.org

[ad_1]

Thread Starter
clarru

(@clarru)

In addition to what I wrote above, I just need to swap the “Total tax” field to Woocommerce’s Tax Name

What shows in the final order screen on website:

While on the printed invoice it displays:

I can see that on Help Guide there are Filters to alter different things but not the Total Tax, could you help me out with this specific field?

Thank you.

Thread Starter
clarru

(@clarru)

I’ve done more digging and found this filter in your plugin code, and I tried altering this total tax label like this, but it still displays total tax on the invoice, instead of MwSt, how I wrote it.

add_filter('wf_pklist_alter_taxitem_label', 'wt_pklist_alter_taxitem_label', 10, 4);

function wt_pklist_alter_taxitem_label($tax_label, $template_type, $order, $tax_item)
{
// Retrieve the tax rate
$tax_rate = $tax_item->get_rate_percent();

// Format the tax information
$formatted_tax_info = sprintf('MwSt %s%%', $tax_rate);

return $formatted_tax_info;
}

Thread Starter
clarru

(@clarru)

NEVERMIND!!

My bad, who would’ve guessed that Tax Item, is eventually the Tax Zone……………… Bad UX

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer