Display Barcode in woocommerce-pdf-invoices-packing-slips

Plugin Used:

  • woocommerce-order-barcodes
  • woocommerce-pdf-invoices-packing-slips

Wanted:

I want to display barcode in pdf invoices

Question:

How to do it … ?

Solution:

Go to folder woocommerce-pdf-invoices-packing-slips/template/Simple

Open invoices.php

Insert this code at the bottom:

<?php
echo WC_Order_Barcodes()->get_display_barcode($this->order);
?>

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *