Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{% set contactNumber = "" %}
{% for contact in Sale.Customer.Contact.Phones.ContactPhone %}
{% if contact.number != "" and contactNumber == "" %}
{% set contactNumber = contact.number %}
{% endif %}
{% endfor %}
<span> Customer Number: {{contactNumber}} </span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment