Hey all,
Transferred to the new Order Printer, and imported all my old templates. They seem to be working ok, at least in Chrome, except the section showing the refunded and fulfilled quantities of orders.
Here’s how refunded and fulfilled line items are printed in the legacy order printer app:
Here’s how those same line items are printed in the newly imported order printer app. Note that the refunded item is not displayed at all.

Below is the code of that particular section. If anyone can help me update the code, that would be great!
{% assign hidden_variant_ids = '' %}
{% for line_item in line_items %}
{% if line_item.properties._boldVariantIds %}
{% assign hidden_variant_ids = hidden_variant_ids | append: ',' %}
{% assign hidden_variant_ids = hidden_variant_ids | append: line_item.properties._boldVariantIds %}
{% endif %}
{% endfor %}
{% assign hidden_variant_ids = hidden_variant_ids | split: ',' %}
{% for line_item in line_items %}
{% if line_item.quantity < 1 %}{% continue %}{% endif %}
{% if hidden_variant_ids contains line_item.variant_id %}{% continue %}{% endif %}
{% assign adjusted_item_price = line_item.price %}
{% assign adjusted_line_price = line_item.price | times: line_item.quantity %}
{% for line_item2 in line_items %}
{% if line_item.properties._boldVariantIds contains line_item2.variant_id %}
{% assign adjusted_item_price = adjusted_item_price | plus: line_item2.price %}
{% assign adjusted_line_option_price = line_item2.price | times: line_item.quantity %}
{% assign adjusted_line_price = adjusted_line_price | plus: adjusted_line_option_price %}
{% endif %}
{% endfor %}
{% assign refunded_quantity = 0 %}
{% for refund in order.refunds %}
{% for refund_line_item in refund.refund_line_items %}
{% if line_item.id == refund_line_item.line_item_id %}
{% assign refunded_quantity = refunded_quantity | plus: refund_line_item.quantity %}
{% endif %}
{% endfor %}
{% endfor %}
{% if line_item.fulfillable_quantity == 0 %}
{% else %}
{% endif %}
{% endfor %}
Thanks in advance for your help,
Marcel
Mascot Label Group
I am having problems with order printer as well. Seems to me that the new order printer is in the early stages and we are beta testing. I suggest you keep using the legacy version as long as possible until Shopify offers solid support for it and works out all the kinks.
I was having a similar issue, but I got mine to work. Here’s my code, hope it helps:
{% if order.refunds %}
{% assign refunded_quantity = 0 %}
{% for refund in order.refunds %}
{% for refund_line_item in refund.refund_line_items %}
{% if line_item.id == refund_line_item.line_item_id %}
{% assign refunded_quantity = refunded_quantity | plus: refund_line_item.quantity %}
{% endif %}
{{ refund_line_item.line_item.title }}
{% if refunded_quantity > 0 %}
Refunded × {{ refunded_quantity }}
{% endif %}
x {{ refunded_quantity }}
{{ refund_line_item.line_item.variant.price | money }}
{{ refund_line_item.line_item.variant.price | money }}
{% endfor %}
{% endfor %}
{% endif %}