Display product barcode number on packing slip

Solved
Highlighted
Tourist
4 0 3

Hi there,

How would I be able to display my barcode number on the packing slip instead of my SKU?

Thanks.

Tao's

0 Likes
Highlighted
Shopify Staff
Shopify Staff
308 26 65

This is an accepted solution.

Hi, @Taos_Boston!

I'm Miles from the Social Care team at Shopify. You will need to add a certain line item in your packing slip code template in order to display the barcode. You can find the line of code here. This guide will also show you other line items you can add as well. As Shopify is unable to support coding help, I did find a post similar to yours in our forums where a Shopify Partner was able to provide support on this implementation, so I recommend checking that post out. You can find it here.

Are you using our Order Printer app for your packing slips and invoices? If not, I highly recommend it. It's got some great features including:

  • Preview and print all the documents you need for your orders.
  • Showcase your brand by making customizations in HTML and Liquid.
  • Print packing slips and shipping labels for all your orders.

We also have a great guide to help you navigate Order Printer which I recommend checking out: https://bit.ly/3nns6Ek.

I'd love to hear more about your store. If you're looking at increasing traffic to your store, I recommend checking out Shopify Compass. Shopify Compass provides you with webinars and courses on things like store design, marketing and more. It's 100% free for everyone and new content is being added all the time. This program will help you drive more traffic into your store and also convert that traffic into sales.

Have you heard about the Shopify Blog? It's got loads of great content on ways for you to drive sales into your store. I've got some great recommendations below that I'd recommend taking a look at:

Driving Traffic but No Sales?
* We give you 13 steps to improve your conversions.
* Who is your target audience, and does your sites look and feel cater to them?
* Is your business trustworthy? (Also see the next recommendation below for more on this)

The 39-Point Store Trust Checklist
* Work through a checklist to make sure your store is trusted by potential customers.
* Look at the "nice to haves" vs "must-haves" in your store.
* Do you have essential information for your customers to view, like policies?

Thanks!

Miles | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

1 Like
Highlighted
New Member
4 0 0

Hey Miles,

This doesn't actually work. Barcode isn't a variable for packing slips for some reason. https://help.shopify.com/en/manual/orders/packing-slips-variable-list

Not sure why it isn't, but no matter what I do, it will not locate the barcode. Oddly enough, barcode has a variable in the notification variables here - https://help.shopify.com/en/manual/orders/notifications/email-variables#line-item

line.variant.barcode

 But not in the packing slip variables, which makes zero sense to me since have a product barcode on a packing slip seems more useful than on notifications. Any help you can give me here would be greatly appreciated. 

You also cannot add it to a custom packing slip using Order Printer app. So frustrating.

0 Likes
Highlighted
Shopify Staff
Shopify Staff
308 26 65

Hi, @Brodydezember!

Thanks for letting me know. Are you able to try adding the following code to the packing slip template in Order Printer and let me know if this pulls the barcode data?

{{ line_item.variant.barcode }}

As an example, the line of code could read like this:

<tbody>
    {% for line_item in line_items %}
      <tr>
        <td>{{ line_item.quantity }} x</td>
        <td>{{ line_item.title }} <b>({{ line_item.sku }})</b>{{ variant.sku }}</td>
        <td>{{ line_item.variant.barcode }}</td>
        {% if line_item.tax_lines %}
          <td>

If after trying this it's still not working, please let me know and I'll have a chat with our team to see if we can help you out.

Thanks!

Miles | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes
Highlighted
New Member
4 0 0

Crazy, I tried something similar last night to this set of code and it didn't work. This time it did.  It's ugly, but it is at least working. Now, I just need to build it out. I ended up install Order Printer Pro and was able to work with the templates there and add in the barcode and it works and looks good, I just don't want to pay the $10 a month for it.

Thanks for your help!

0 Likes