How to show options in emails and packing slips

Shopify's order page already shows the options a customer chose, because they are saved on each order line. Emails and packing slips do not list them until you add a short snippet to the template. This article shows how to add it.

Before you start

Get the snippet

  1. In Sol: Product Options, go to Orders and open Notifications.
  2. Choose where the options should show: Order confirmation email, Packing slip or Staff order notification.
  3. Read the steps shown for that place, then click Copy snippet, above the snippet. A message says "Snippet copied".

The Notifications view of the Orders page with Order confirmation email selected, the numbered steps, the snippet, the Copy snippet button and the link to open the template

  1. Click the button next to Copy snippet (for example Open order confirmation template). It opens the right Shopify page in a new tab.

Add it to a template

Place Where to edit Paste the snippet
Order confirmation email Settings > Notifications > Customer notifications > Order confirmation, then Edit code Below {{ line.title }}
Packing slip Settings > Shipping and delivery > Packing slips, then Edit Below {{ line_item.title }}
Staff order notification Settings > Notifications > Staff notifications > New order, then Edit code Below {{ line.title }}

After pasting, save the template. Send yourself a test notification, or preview a packing slip, to check the result.

What the snippet prints

For each order line, it lists every property that does not start with an underscore and is not empty, as "Label: Value" on its own line. Hidden properties that start with _ are skipped. A value that is an uploaded file (a link on Shopify's file host) is shown as a link. If a line shows no properties of its own, the snippet also checks the line's components. Labels and values are escaped, because they contain customer text.

For a T-shirt line, the email can show:

The label before the colon is the option's label in your option set, and the value is what the customer chose.

[!WARNING] Uploaded file links stop working 90 days after the upload. Save the files you need from the order before then.

Related articles

← The Orders page and add-on revenue How to test your options with a test order →