Hello Magento Friends,

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

A credit memo is issued to customers for a partial or full refund. Magento 2 credit memo contains order information and billing details. A credit memo in Magento 2 can be issued in a printed format or as a PDF or credit memo emails.

If there is any additional information that needs to be added to the Credit Memo PDF Magento 2, the admin can add custom text after the billing & shipping address.

So, let us find out How to Add Custom Text after Billing Address and Shipping Address in Credit Memo PDF in Magento 2.

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

Step 1: First we need to create a di.xml file inside the etc folder at the below path

app\code\Vendor\Extension\etc\adminhtml

Then add the following code 

Step 2: In the second step we will create the Creditmemo.php file inside the model folder at the below-given path

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

Now add the code as follows

 

Conclusion:

Hence, accordingly, you can Add Custom Text after Billing Address and Shipping Address in Credit Memo PDF in Magento 2. Apart from custom text, you can also show or hide the order ID in Magento 2 Credit Memo PDF.

If you have any doubts regarding the above solution, you can freely ask me through the comments. Share the tutorial with your Magento friends and stay updated with us!

Happy Coding!

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