We have products from different companies that are grouped in different places in our store. We have two companies that number their products instead of have names for them. It would be much better for shoppers to grab 15 items from one type of product before moving onto the next product type. Right now its all by alphabet. Can I first tell the system to sort by product type THEN by alphabet? It would make picking orders much more efficient.
Hi - I'm not a professional coder by any means, but I hacked together a way to sort our picklists by product type in Order Printer. It might (or might not) be helpful for your situation, too.
Our warehouse is organized by product type together, so we wanted our pick list to show items the same way to help make picking more efficient. This code manually lists product types with a catch-all at the end. It's not necessarily elegant but it gets the job done for us. "Type1", "Type2", etc would be replaced by whatever the names of your product types are.
Hope it's helpful.
<table class="table-tabular" style="margin: 0 0 1.5em 0;">
<thead>
<tr>
<th>Item</th>
<th style="text-align: right;">Quantity</th>
</tr>
</thead>
<tbody>
{% for line_item in line_items %}
{% if line_item.product.type == "Type1" %}
<tr>
<td>
<b>{{ line_item.vendor }} {{ line_item.title }}</b>
</td>
<td style="text-align: center;">
{{ line_item.quantity }}
</td>
</tr>
{% elsif line_item.product.type == "Type2" %}
<tr>
<td>
<b>{{ line_item.vendor }} {{ line_item.title }}</b>
</td>
<td style="text-align: center;">
{{ line_item.quantity }}
</td>
</tr>
{% elsif line_item.product.type == "Type3" %}
<tr>
<td>
<b>{{ line_item.vendor }} {{ line_item.title }}</b>
</td>
<td style="text-align: center;">
{{ line_item.quantity }}
</td>
</tr>
{% else %}
<tr>
<td>
<b>{{ line_item.vendor }} {{ line_item.title }}</b>
</td>
<td style="text-align: center;">
{{ line_item.quantity }}
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
Hello,
I am using my product type field in shopify as warehouse bin locations so i can get it to print on my order pick list.
how can i sort the products in the order by product type?
Here is my code:
<table cellspacing="1" cellpadding="1" width="100%" style="padding: 1.5em; border: 1px solid black;"><tr><td>
{% if shipping_address %}
{% if attributes.Pickup-Location-Address %}
<h2 style="margin: 0 0 1em 0;">Store Pickup</h2>
<b>{{ attributes.Pickup-Collector-First-Name }} {{ attributes.Pickup-Collector-Last-Name }}</b><br />
{{ attributes.Pickup-Collector-Phone }}<br/>
Pickup Date: {{ attributes.Pickup-Date }}<br />
{{ attributes.Pickup-Location-Company }}<br />
{{ attributes.Pickup-Location-Address }}<br/>
Photo ID #: ________________________ <br/>
Pickup Date: ______________________ <br/><br/>
Customer Signature:________________________ <br/>
{% endif %}
</td> <td valign="top">
<h2 style="margin: 0 0 1em 0;">Recipient</h2>
<strong>{{ shipping_address.name }}</strong><br/>
{% if shipping_address.company %}
{{ shipping_address.company }}<br/>
{% endif %}
{{ shipping_address.phone }}<br />
{{ shipping_address.street }}<br/>
{{ shipping_address.city }} {{ shipping_address.province_code }} {{ shipping_address.zip | upcase }}<br/>
{{ shipping_address.country }}
</div>
{% endif %}
</td></tr></table>
<br/>
<div style="margin: 0 0 1.5em 0; padding: 1.5em; border: 1px solid black;">
<h2 style="margin: 0 0 1em 0; text-align:left">Order Number: {{ order_number }} Packing Slip</center> </h2>
{{ date }}
<table border="2" width="100%"><tr align="center"><td> Location </td><td> Product Name </td><td>Qty Ordered</td><td>Qty Shipped</td></tr>
{% for line_item in line_items %}
<tr><td> {{ line_item.product.type }} </td><td> {{ line_item.name }}</td><td align="center"> {{ line_item.quantity }}</td><td></td></tr>
{% endfor %}
</table>
</div>
{{ shipping_method.title }}
{{ shipping_price | money }}
<br/>
{% if attributes.Pickup-Location-Address %}
<b> Please Record ID, Pickup Date, and Customer Signature upon pickup. Photo ID Must Match Recipient or Pickup Collector Name.</b>
{% endif %}
User | Count |
---|---|
11 | |
11 | |
6 | |
6 | |
5 |