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?
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 %}
Email: [{{ customer.email }}](mailto:{{ customer.email }})
{% endif %}
{% if customer.phone %}
Phone: {{ customer.phone }}
{% 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