The YITH WooCommerce Barcodes and QR code plugin let you add barcode or QR code to products and/or order.
Once you setup the plugin it will allow you to generate, manually or automatically, barcodes images with a specific barcode protocol or QR code images for every new product or order created.
The barcodes image is shown on the single product page, give a look at this sample products with EAN8 barcodes, EAN13 barcodes and QR code.
Shortcode
As well as to display bar codes on product pages or on emails, this plugin provides some interesting shortcodes that allow you to show any type of bar codes at each page of your website or to search for products and orders and you still can write custom code to implement functionality not provided in the plugin thanks to the provided API.
We configured a page where you can see how you can render a barcode.