We’re having an issue with Order Printer where refunded line items are appear on the packing slip. This is confusing to our packers and customers. The native packing slip, available under shipping settings, does not have this issue because it has access to the variable:
{% for line_item in line_items_in_shipment %}
However, when I attempt to include a forloop calling line_items_in_shipment in my Order Printer packing slip template, it returns null. Am I missing something here? What I can I do to call only those items in the shipment? Here’s an example:
## Sender
**{{ shop.name }}**
{{ shop.address }}
{{ shop.city }} {{ shop.province_code }} {{ shop.zip | upcase }}
{{ shop.country }}
{% if shipping_address %}
## Recipient
**{{ shipping_address.name }}**
{{ shipping_address | format_address }}
{{ shipping_method.title }}
{% endif %}
{% for line_item in line_items_in_shipment %}
{% endfor %}
| Quantity | Item |
| - | - |
| {{ line_item.shipping_quantity }} x | **{{ line_item.title }}** |