Hello Magento Friends,

In this Magento 2 tutorial guide, I will explain How to Add Custom Text after Billing Address and Shipping Address in Shipment PDF?

The shipment PDF is a document generated for each shipment made from an order. When a store owner processes an order and ships the items to the customer, they often create a shipment record in the Magento admin panel. This shipment record can be associated with a particular order and contains details such as the items shipped, shipping address, tracking information, and more.

If you want to add additional information after the billing and shipping address in the Shipment PDF, you can use the below steps.

Steps to Add Custom Text after Billing Address and Shipping Address in Shipment 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\di.xml

Then add the code as follows

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

app\code\Vendor\Extension\Model\Order\Pdf\Shipment.php

And add the code as given below

 

Conclusion:

Hence, accordingly, you can add custom text after billing and shipping address in Shipment PDF using the above steps. You can also check

If you have any queries about implementing the above steps, you can connect with me through the comment section. Share the tutorial with your friends and stay in touch with us for more such Magento 2 solutions.

Happy Coding!

Click to rate this post!
[Total: 0 Average: 0]