Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Vishal Kothari

    (@ashokrane)

    Hi @jaweb1,

    You will need to make following changes in woocommerce-delivery-notes.php file.

    In the load(), add:

    add_filter( 'wcdn_document_title', array( $this, 'wcdn_change_invoice_title' ), 10, 1 );

    Here is the actual function if you were to rename ‘Invoice’ to ‘Tax Invoice’:

    public function wcdn_change_invoice_title( $title ) {
    
    	if ( 'Invoice' === $title ) {
    		$title = 'Tax Invoice';
    	}
    	return $title;
    }

    Let me know if you have any other questions.

    :Vishal

    For me this is ends up removing all titles.

    Any advice?

    Thanks!

    • This reply was modified 6 years, 9 months ago by joshuagawne.
    Plugin Author Vishal Kothari

    (@ashokrane)

    @joshuagawne,

    When you say it removes all titles, do you mean to say it changes all titles to “Invoice”? Can you elaborate on the issue you are facing?

    :Vishal

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