Customer email in order notification

David_Dale
Shopify Partner
13 0 18

I''m trying to add the customer's phone number to the "new order" notification. I was able to add the "customer.email" but "customer.phone" does not display anything. Also trying "phone" does not work. Anyone have any ideas?

0 Likes
David_Dale
Shopify Partner
13 0 18

Anyone have any ideas on this? Here is the code I am using:

{% if customer.name %}
{{ customer.name }} placed order {{ name }} on {{ current_date }} at {{ current_time | strip }}.
{% if customer.email %}
<div>Email: <a href="mailto:{{ customer.email }}">{{ customer.email }}</a></div>
{% endif %}
{% if customer.phone %}
<div>Phone: {{ customer.phone }}</div>
{% endif %}
{% else %}
Someone placed order {{ name }} on {{ current_date }} at {{ current_time | strip }}.
{% endif %}

 

The customer.phone if statement seems to fail all the time even when there is a phone number available. Customer email does work though

0 Likes