How do I add virtual option data to my packing slip?

Packing slips can be edited in Settings > Shipping and delivery > Edit packing slip template

You’ll need to add this code to display virtual option data:

{% for p in line_item.properties %}
    {% unless p.last == blank %}
      <div class="item-description-line">{{ p.first }}:
        {% if p.last contains '/uploads/' %}
          Uploaded File
        {% else %}
          {{ p.last }}
        {% endif %}
      </div>
    {% endunless %}
{% endfor %}

Example:

Was this article helpful?
Dislike 0

Pin It on Pinterest