523 views

The default 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

Share This

Share this post with your friends!