Skip to content

Instantly share code, notes, and snippets.

@Adrian-Samuel
Last active August 25, 2020 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Adrian-Samuel/b42025b44641988c6755413e1cd976f3 to your computer and use it in GitHub Desktop.
Save Adrian-Samuel/b42025b44641988c6755413e1cd976f3 to your computer and use it in GitHub Desktop.
{% 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