Solved

Order barcode for shopify order printer

ay8
Visitor
2 0 0

The original Order printer app is being sunsetted and replaced by the shopify version. Our old packing slips had barcodes for us to scan so the order appeared in our fulfillment software. Is there a way to add a barcode to the shopify order templates?

 

We have previously tried adding the code below (provided by shopify support) to the default template and it's provided syntax errors. Could someone please assist with getting the order number barcode to generate. 

<p>Order #: {{ [order.name](http://order.name) }}</p> <img src="[barcode.tec-it.com/barcode.ashx?data=](https://barcode.tec-it.com/barcode.ashx?data=){{ [order.name](http://order.name) | url_encode }}&code=Code128&dpi=96" alt="Barcode for Order {{ [order.name](http://order.name) }}" style="margin-top:10px;">

 

We have made no other edits to the default code. We have placed this at the top of the code under the first <div>

Accepted Solution (1)

MakP
Shopify Partner
27 6 8

This is an accepted solution.

Are you just needing the barcode to output the order number when scanned? If so, this worked for me:

 

<img src="https://barcode.tec-it.com/barcode.ashx?data={{ order.order_name | remove: '#' }}&code=Code128&translate-esc=on">

 

 

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.

View solution in original post

Replies 2 (2)

MakP
Shopify Partner
27 6 8

This is an accepted solution.

Are you just needing the barcode to output the order number when scanned? If so, this worked for me:

 

<img src="https://barcode.tec-it.com/barcode.ashx?data={{ order.order_name | remove: '#' }}&code=Code128&translate-esc=on">

 

 

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.

ay8
Visitor
2 0 0

Perfect thank you!!