Hello Magento Friends,

In this blog, we will discuss How to Add Custom Text after Billing Address and Shipping Address in Invoice PDF in Magento 2.

Invoices are legal proof given to customers for the items they have purchased from your store. Online store owners can send invoices through emails or in PDF format. Magento 2 Download Invoice PDF Extension helps to allow customers to easily download invoice PDFs whenever required from their My Account section.

The invoice contains information like order details, shipping address, delivery address, payment method, shipping method, invoice no., order no., date, etc. Apart from these details if you want to show additional information after billing and shipping address in the Invoice PDF, perform the below steps.

Steps to Add Custom Text after Billing Address and Shipping Address in Invoice PDF in Magento 2:

Step 1:  First, we need to create a “di.xml“ file inside our extension at the following path

app\code\Vendor\Extension\etc\adminhtml\

Then add the code as follows

Step 2:  After that, we need to create an “Invoice.php” file inside our extension at the following path

app\code\Vendor\Extension\Model\Order\Pdf\

And add the code as given below

Output:

After completing the below steps successfully, it will show custom text in the invoice pdf as shown below

Conclusion:

This way, you can add custom text after billing and shipping address in Magento 2. In the same way, you can add custom text after billing and shipping address in Credit Memo PDF and Admin Order View Page in Magento 2.

Contact us for any more customization and stay updated for more Magento tutorials.

Happy Coding!

Click to rate this post!
[Total: 2 Average: 5]