Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hello,
The following outputs the GID value of the Metaobject from the Metafield.
{% if order.metafields.meta.assigned_concierge_team_member %} {% assign concierge_handle = order.metafields.meta.assigned_concierge_team_member %} <p>Concierge Handle: {{ concierge_handle }}</p> {% else %} <p>No Concierge Handle Assigned</p> {% endif %}
The following code fails to output the values of the metaobject fields
{% if order.metafields.meta.assigned_concierge_team_member %} {% assign concierge_handle = order.metafields.meta.assigned_concierge_team_member %} <p>Concierge Handle: {{ concierge_handle }}</p> <p>First Name: {{ concierge_info.first_name.value }}</p> <p>Last Name: {{ concierge_info.concierge_team_member.last_name.value }}</p> <p>Role Title: {{ concierge_info.concierge_team_member.role_title.value }}</p> <p><img src="{{ concierge_info.concierge_team_member.profile_picture.value | img_url: '300x300' }}" alt="Concierge Profile Picture"></p> {% else %} <p>No Concierge Handle Assigned</p> {% endif %}
This is not possible
Check this out:
https://community.shopify.com/c/technical-q-a/use-metaobjects-in-order-confirmation-email/m-p/279132...