• Resolved stan255

    (@stan255)


    Hi,
    How can I change the header “Invoice” to “Tax Invoice”?
    If that is not possible, how can you add another word “Tax Invoice” in the header?

    This is for legal reasons in Australia and the term “Tax Invoice” has to be on the invoice.

    Stan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Of course, check out this documentation page: Change the document title

    Thread Starter stan255

    (@stan255)

    Thank you! That worked.

    Hi,
    I was also looking at altering “Invoice” into “Tax Invoice”.
    Since we use the website to sell into Australia for local customers and also to export customers, I was wondering how to make Tax Invoice for just local customers.
    The translation method only works for the WordPress site as a whole not by customer order country. If I make a translation file for US english then it works.

    For Export invoice we are often asked to present as “Commercial Invoice”

    Plugin Contributor Ewout

    (@pomegranate)

    Yes you can do that using the filter from the documentation linked above:
    https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/change-the-document-title/#free-version

    
    add_filter( "wpo_wcpdf_invoice_title", function( $title, $document = null ) {
    	if ( !empty($document) && !empty($document->order) ) {
    		$billing_country = $document->order->get_billing_country();
    		if ($billing_country == 'AU') {
    			$title = 'Tax Invoice';
    		}
    	}
    	return $title;
    }, 10, 2 );
    

    Hope that helps!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change “Invoice” to “Tax Invoice”’ is closed to new replies.