All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I'd like my packing slip items to be grouped by Product Type.
I have tried this code with no luck:
In the Packing Slip template, replaced:
{% for line_item in line_items_in_shipment %}
with:
{% assign lineitems = line_items_in_shipment | sort: "line_item.product.type" %} {% for line_item in lineitems %}
I pulled the basic code from this post, where some people had luck sorting alphabetically.
I pulled the sort criteria from this post. Not sure it's even the correct sorting criteria.