Adding Virtual Option Data to Invoices, Packing Slips and other Notifications

To edit notifications that get sent to you or to your customers, check out this article

To edit invoices or packing slips, you’ll need to install this free app created by the Shopify team:
Shopify’s Order Printer app.

Every template is different, but you should be able to find a place where the items in the order are listed.
Here’s what this place looks like for a Shipping Fulfillment Request Notification.

{% for line in fulfillment.fulfillment_line_items %}

Variant Title: {{ line.line_item.title }}

SKU: {{ line.line_item.sku }}

Quantity: {{ line.quantity }}

Grams: {{ line.line_item.grams }}

Vendor: {{ line.line_item.vendor }}

{% endfor %}

Just paste this code inside the for loop.

{% for p in line.properties %}
{{ p.first }}: {{ p.last }}
{% endfor %}

Result:

{% for line in fulfillment.fulfillment_line_items %}

Variant Title: {{ line.line_item.title }}

SKU: {{ line.line_item.sku }}

Quantity: {{ line.quantity }}

Grams: {{ line.line_item.grams }}

Vendor: {{ line.line_item.vendor }}

{% for p in line.properties %}
{{ p.first }}: {{ p.last }}
{% endfor %}
{% endfor %}

P.S. Make sure that the line variable matches the variable in the for loop… sometimes it’s line_item as in the example below.

Was this article helpful?
Dislike 0

Pin It on Pinterest