All things Shopify and commerce
Hello!
I am experiencing a huge problem picking orders.
Who can advise or how can I make that all SKU numbers would be in a sequence , because all my stock is sorted by locations.
Otherwise this chaos makes me run up and down , to one warehouse corner to another to pick items in the box.
To make it clear I will add a screenshot.
I need SKU's to go in order.
1; 2; 3; 4; ..... 52, 56, 101, 245, 356, etc
If someone could help me with this I would highly appreciate!
Thank you!
You can add the below line of code
{% assign line_items_in_shipment = line_items_in_shipment | sort: "sku" %}
in the packing slip template above
{% for line_item in line_items_in_shipment %}
Go to Settings > Shipping & Delivery > Edit packing slip template
Is there an exact location in the code where this line of code should be added?
In your packing slip template, find the line:
{% for line_item in line_items_in_shipment %}
For me it was line 100...but yours will vary depending on which template you are using.
When you find that, you want to replace it with
{% assign lineitems = line_items_in_shipment | sort: "sku" %}
{% for line_item in lineitems %}
Once you make the change, be sure to save it. If you still don't see the change working, perhaps trying logging out and back in again to see if that resets it and allows the change to take place.
Worked for me, awesome, thank you
I was looking for the same thing to have SKUs listed in order without using an outside app. This worked great! Thanks!
I already have this set up but we use skus like S12, A47, etc so it will sort S2 after S12, because 2 comes after 1. Is there a way I can get it to recognize 12 as a higher number than 2?
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025