All things Shopify and commerce
Hello,
I've succesfully sorted a packing slip i print out by a print app using the sort function:
{% assign line_items = line_items | sort:"SKU" %}
Now I need to sort it by variant barcode; I tried with the following code but there is something missing bcs it doesn't work:
{% assign line_items = line_items | sort:"line_item.variant.barcode" %}
Anybody knows where i'm doing wrong?
I am more interested in how your even got a barcode to show up on packing slip. I have been working for ages and I for the life of me can't get a barcode to populate. What is your secret?
To answer Brodydezember's question, I use something like:
{% for line_item in line_items %}
<tr>
<td>{{ line_item.variant.barcode }}</td>
</tr>
{% endfor %}
daniobanio, did you ever figure out sorting by line_item.variant.barcode? I have the same problem. All sorting seems to do is reverse the order of line items rather than actually sorting anything.
Hey! Where would I enter this code to sort the product by sku? My employees are running all over the warehouse because its shelved numerical by sku #. Thanks for your help!
User | RANK |
---|---|
38 | |
22 | |
19 | |
18 | |
14 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023