{{ order.source_name }} returns nothing

Topic summary

Issue: In a packing slip template, the Liquid variable {{ order.source_name }} is expected to indicate the order’s source (e.g., ‘web’ for Online Store vs. Draft Orders) but is returning empty.

Context: The author is using Liquid (templating language) to differentiate order origins and discovered through troubleshooting that {{ order.source_name }} doesn’t output any value.

Request: Seeking an alternative Liquid field or method to reliably identify the source of an order.

Artifacts: The key code snippet is {{ order.source_name }}; no images or attachments are involved.

Status: Unresolved. No confirmed workaround or answer yet; the thread remains open with the main question unanswered.

Summarized with AI on December 31. AI used: gpt-5.

I am using the dynamic liquid value {{ order.source_name }} in a packing slip in order to tell if an order came from my Online Store (in which order.source_name == ‘web’) or anywhere else such as Draft Orders.

However upon troubleshooting it appears that {{ order.source_name }} is empty; it doesn’t return anything.

How else can I reference the source of an order in liquid?