WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Change "Invoice" to "Tax Invoice"

[Resolved] Change "Invoice" to "Tax Invoice"

Viewing 8 replies - 1 through 8 (of 8 total)
  • This can be done but there are quite a few steps involved, also, if you upgrade the plugin at any stage in the future, you will lose these changes and have to repeat the procedure again.

    1) Login to your WordPress Dashboard and go to Plugins > Editor.

    2) Choose WooCommerce Print Invoices & Delivery Notes from the Select plugin to edit: dropdown menu at the top right and click Select.

    3) Click on woocommerce-delivery-notes/woocommerce-delivery-notes.php under the heading Plugin Files on the right side of the page.

    4) Locate the following lines in the file. You can do this just by scrolling down inside the editor box, or by doing a search (CTRL + F for Windows or CMD + F for Mac) on your browser and using Show the template title depending on type as the search term.

    /**
     * Show the template title depending on type
     */

    5) Approx 4 lines under this heading you will find this line of code:

    echo apply_filters( 'wcdn_template_title', __( 'Invoice', 'woocommerce-delivery-notes' ) );

    6) Change the word Invoice to Tax Invoice like this:

    echo apply_filters( 'wcdn_template_title', __( 'Tax Invoice', 'woocommerce-delivery-notes' ) );

    7) Click on the blue Update File button underneath the editor box.

    8) Make sure you get the yellow File edited successfully banner at the top of the page and you are all set!

    Let me know how you go!

    Plugin Author piffpaffpuff

    @chabis

    @toherangi thanks for your help, but i think that editing source files isn’t very update-proof. i think the following should work instead (not tested but should work): just add the code below to your theme functions.php.

    function change_invoice_title($title) {
    return 'Tax invoice';
    }
    add_filter('wcdn_template_title', 'change_invoice_title');

    Yes, I did advise such. It was really just a stopgap solution.
    Won’t functions.php also be overwritten on a theme update?

    Well a functions file won’t get overwritten if I’m using a child theme… which I am so it might just do the trick! I’ll give it a go now.

    It worked! You so totally ROCK! Thanks heaps!

    Well done on using the child theme, always the best way to go.
    Many people don’t so I didn’t want to assume.

    Glad it worked for you.

    Just wondering whether there will ever be an easier way to achieve this change? Having ‘Tax Invoice’ printed on the top of invoices is something that almost all Australian businesses need to do to comply with Federal Government Taxation requirements. If there is any way this could be worked into an update of this plugin we would be forever grateful!

    I’ll give the suggestions a go as well.

    Thanks for the instructions.

    Just like to agree with Melanie71 it is a tax requirement in Australia to include the words Tax Invoice – also need to quote our ABN (Australian Business Number).

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Change "Invoice" to "Tax Invoice"’ is closed to new replies.