• Resolved thehaikuway

    (@thehaikuway)


    Hi, the plugin is great and works wonders, but I cannot find a way to edit the invoice title. It is correctly translated from “Invoice” to “Fattura” in Italian, but per customer’s request I have to change it. It’s in the pdf, right below where the logo appears.
    Thanks!

    • This topic was modified 3 years, 7 months ago by thehaikuway.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hello @thehaikuway,

    You can achieve this with no code using the Professional extension, since it extends the documents features, including the customization of the document title and PDF filename:

    The screenshot displays the Document title and PDF filename customization fields from the Professional extension

    If you want to try with code, using the free version, please add this code snippet to your site:

    /**
     * Update the invoice title to "Receipt"
     */
    add_filter( 'wpo_wcpdf_invoice_title', 'wpo_wcpdf_invoice_title', 10, 2 );
    function wpo_wcpdf_invoice_title ( $title, $document ) {
        $title = 'Receipt';
        return $title;
    }

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

    Let me know if you manage to update your invoices title! ??

    Thread Starter thehaikuway

    (@thehaikuway)

    I use your snippet with Code Snippets and it worked perfect! Thank you very much

    Plugin Contributor Yordan Soares

    (@yordansoares)

    I’m glad to know that you manage to do it ??

    If you don’t mind and have the time, do you think you could leave us a review?

    Thanks in advance and all the best with your store!

    Thread Starter thehaikuway

    (@thehaikuway)

    Reviewed!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do I change the title text in the Invoice template?’ is closed to new replies.