Order Printer Packing Slip

Highlighted
New Member
2 0 0

Anybody know the best liquid code to only print certain product variables onto a packing slip in Order Printer? We've set our store so each item can be purchased for wholesale delivery any day of the week by setting up each item with 7 variables (Mon - Sun). I'm having trouble getting order printer to only print products from orders with the variable 'Monday', here's the current code: 

 

<p style="float: right; text-align: right; margin: -1;">
{{ "now" | date: "%m/%d/%y" }}<br />
Delivery Receipt for <b>{{ customer.name }}</b><br/>
Order <b>{{ order_name }}</b>
</p>

<div style="float: left; margin: 0 0 0.5em 0;" >
<h2 style="margin: 0 0 1em 0;">Recipient</h2>
<strong>{{ customer.name }}</strong><br/>
<br/>

<strong>{{ shipping_address.name }}</strong><br/>
{% if shipping_address.company %}
{{ shipping_address.company }}<br/>
{% endif %}
{{ shipping_address.street }}<br/>
{{ shipping_address.city }} {{ shipping_address.province_code }} {{ shipping_address.zip | upcase }}<br/>
{{ shipping_address.country }}
</div>

<hr />

<h3 style="margin: 0 0 1em 0;">Item Details</h3>

<table class="table-tabular" style="margin: 0 0 1.5em 0; font-size: 13px;">
<thead>
<tr>
<th>Quantity Per Day</th>
<th>Item</th>
</tr>
</thead>
<tbody>
{% assign sorted_line_items = line_items | sort: 'sku' %}
{% for line_item in sorted_line_items %}
<tr>
<td>{{ line_item.quantity }} x</td>
<td><b>{{ line_item.title }}</b></td>
</tr>
{% endfor %}
</tbody>
</table>


{% if note %}
<h3 style="margin: 0 0 1em 0;">Note</h3>
<p>{{ note }}</p>
{% endif %}

 

Apologies if this is very basic, out of my depth on this :)

0 Likes