Hello Magento Friends,

In this guide, I will explain How to Add Additional Column in Invoice PDF for Bundle Products in Magento 2.

Invoices are an essential document both for customers and store admin. Invoices contain order information, total payable amount, and company information. Automatically generate the invoice for Magento 2 by integrating Auto Invoice and Shipment Extension.

Magento 2 owners can customize the invoice pdf by adding an extra column if required.

Steps to Add Additional Column in Invoice PDF for Bundle Products in Magento 2:

Step 1: Go to the below file path

app\code\Vendor\Extension\etc\adminhtml\di.xml

Then add the code as follows

Step 2: Now, move to the following file path

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

And embed the following code snippet

Step 3: Then, navigate to the following path

app\code\Vendor\Extension\Model\Sales\Order\Pdf\Items\Invoice.php

Finally, add the below-mentioned code

Step 4: After that run the below commands

Conclusion:

Accordingly, you can easily add any additional column in the Invoice PDF for bundled products in Magento 2. You can also include Order ID and Customer IP Address in the Invoice PDF in Magento 2.

Share the article with your Magento friends and stay updated for more articles on Magento 2.

Happy Coding!

Click to rate this post!
[Total: 8 Average: 2.8]