PostNL - Packing slip HTML
To create your own layout you can use html and liquid, the whole order object of Shopify is available. For example you can use :
and also:
If you want to show the shipping option you can use
The line items of the order are also available, so you can create a table with all the line items in it by looping over them:
{{ order.shipping_address.company }}
{{ order.shipping_address.address1 }}
{{ order.shipping_address.city }}
{{ order.shipping_address.province_code }}
{{ order.shipping_address.zip }}
{{ order.shipping_address.country }}
and also:
{{ order.total_price }}
{{ order.name }}
{{ order.financial_status }}
.If you want to show the shipping option you can use
{{ order.shipping_lines[0].title }}
The line items of the order are also available, so you can create a table with all the line items in it by looping over them:
<table class="product-list" width="100%" cellpadding="0" cellspacing="0">
<tr>
<th>Article #</th>
<th>Item</th>
<th>Quantity</th>
</tr>
{% for line_item in order.line_items %}
<tr>
<td>{{ line_item.sku }}</td>
<td>{{ line_item.title }}</td>
<td>{{ line_item.quantity }} x</td>
</tr>
{% endfor %}
</table>
Updated on: 08/02/2021
Thank you!