How to Create Barcode in Magento 2 Invoice PDF

December 17, 2020
By Cozmot

Magento 2 facilitates the merchants to provide multiple things in invoice PDFs like order id, customer name, shipping address, product name, product quantity, product price, total amount, and so on.

However, depending on the business requirements, customization in invoice PDF can be done.

One such customization solution is offered in this post to create barcode and add it in Magento 2 invoice PDF.

Barcode in invoice PDF helps the customer to scan and get the order id using which it is easy to get order details.

Steps to Create Barcode and Add it in Magento 2 PDF Invoice

1. Create di.xml file at Vendor\Extension\etc

 

2. Create Invoice.php file in Vendor\Extension\Plugin\Invoice.php

Done! That’s what you need to do.

 

For Details Visit Cozmot.com 

Follow us on Facebook and visit Our Blog]]>

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!