Are you just needing the barcode to output the order number when scanned? If so, this worked for me:
You may need to play around with the image size to get it where it suits your needs - It’s a bit large by default.
Issue: Users need to add scannable barcodes representing order numbers to packing slips in Shopify’s new Order Printer app, as the original app is being discontinued.
Solution Provided: A working code snippet was shared that generates barcodes using an external barcode service (barcode.tec-it.com). The code creates an image of the order number in Code128 format:
<img src="https://barcode.tec-it.com/barcode.ashx?data={{ order.name | url_encode }}&code=Code128&dpi=96" alt="Barcode for Order {{ order.name }}" style="margin-top:10px;">
Key Points:
Status: Initial question resolved with working code, though implementation questions from less technical users remain ongoing.
Are you just needing the barcode to output the order number when scanned? If so, this worked for me:
You may need to play around with the image size to get it where it suits your needs - It’s a bit large by default.