How to Change Text in Invoice Template in Magento 2?

  • author-img Nidhi Arora
  • 5 years
  • 863 views
How to Change Text in Invoice Template in Magento 2?

The invoice template is a must-have thing for every store owner and it is mainly required just after an order’s submission. Though it is the last step, but no one wants to lose their customer’s impression even in this last stage. To expand you upon this Magento’s default invoice template feature, we have come up with some pretty straightforward steps to help you in changing the text in your invoice template in Magento 2. No complicated coding is required anymore!

Read on to learn how to easily change the text in invoice template in Magento 2:

  1. Navigate to

    >>data/magento2/app/code/Magento/Sales/Model/Order/Pdf/Invoice.php
  2. Now, check the file Invoice.php

Note: Always overwrite them in your own theme. (Don’t edit them directly)

For example:

Go to line number 150, you will see the following code:

$this->insertDocumentNumber($page, __('Invoice # ') .
  1. Now, add a word of your own choice or edit it as per your need as shown in the example below:

Note: We have added the word “Envision” here:
$this->insertDocumentNumber($page, __('Envision Invoice # ') .
  1. And, that’s it! It will update your printed invoice pdf.

Thank you for reading this blog. Hope these steps point you in the right direction! If you still have any query, don’t hesitate to contact us at envisionecommerce.com.

Download Blog

ENQUIRY

Ready to Get started

Communication is the key for us to understand each other. Allow us to understand
your requirements or queries. Present us with an opportunity to serve you.

Fill out the form and out team will get back to you
within 24 hours

    Head Office

    1250 Pittsford Victor Road Ste 310
    Pittsford, NY 14534

    Development Center

    Plot no. 10, Rajiv Gandhi
    Chandigarh Technology Park