Hi - The problem in a nutshell:
-
the shop owner wants all contact and order information included in the notification email - phone, email address, notes, custom product details- everything.
-
I thought I had added it all into the template on Notifications >Shop Order Notifications > Template. Code included below.
-
None of this information appears on emails from real orders.
-
When I use “send test notification” these areas popular with fake contact info correctly.
What am I doing wrong? Some orders are for delivery and some are for store pick up. But all require at least a phone or email and even that isn’t showing up. Help? Thanks!
---- Template—
{% capture email_title %}
Security check
{% endcapture %}
{{ email_title }}
.button__cell { background: {{ shop.email_accent_color }}; }
a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
@media print{
body {
color: black !important;
}
.subtitle-lines,
.subtotal-line__title,
.subtotal-line__value {
padding: 0 !important;
margin: 0 !important;
}
.subtotal-table {
margin: 0 !important;
}
}
{% if fulfillment_aborted %}
|
Order was not fulfilled automatically
High risk of fraud detected. Before fulfilling this order or capturing payment, please review the the Risk Analysis and determine if this order is fraudulent.
|
{% endif %}
{% if has_high_risks? %}
|
High risk of fraud detected
Before fulfilling this order or capturing payment, please review the the Risk Analysis and determine if this order is fraudulent.
|
{% endif %}
|
{% assign current_date = date | date: "%b %d" %}
{% assign current_time = date | date: "%l:%M %P" %}
{% if customer.name %}
{{ customer.name }} placed order {{ name }} on {{ current_date }} at {{ current_time | strip }}.
{% else %}
Someone placed order {{ name }} on {{ current_date }} at {{ current_time | strip }}.
{% endif %}
|
|
|
|
Order summary
{% for line in subtotal_line_items %}
{% endfor %}
{% if line.image %}
{% endif %}
|
{% if line.quantity < line.quantity %}
{% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %}
{% else %}
{% assign line_display = line.quantity %}
{% endif %}
{% if line.product.title == blank %}
{{ line.title }}
{% else %}
{{ line.product.title }}
{% endif %}
{% if line.quantity %}
{% if line.original_line_price != line.final_line_price %}
{{ line.original_price | money }}
{% endif %}
{{ line.final_price | money }} × {{ line.quantity }}
{% endif %}
{% if line.variant.title != ‘Default Title’ %}
{{ line.variant.title }}
{% if line.sku != blank %}
•
{% endif %}
{% endif %}
{% if line.product.metafields.custom_fields.details!=blank %}
{{product_form_id}}
{%endif%}
{% if line.sku != blank %}
SKU: {{ line.sku }}
{% endif %}
{% if line.selling_plan_allocation != nil %}
{{ line.selling_plan_allocation.selling_plan.name }}
{% endif %}
|
{% if line.final_line_price > 0 %}
{{ line.final_line_price | money }}
{% else %}
Free
{% endif %}
|
|
|
{% assign discount_value = 0 %}
{% for discount_application in discount_applications %}
{% if discount_application.target_selection == ‘all’ %}
{% assign discount_value = discount_application.total_allocated_amount %}
{% endif %}
{% endfor %} {% for discount_application in discount_applications %}
{% if discount_application.target_selection == ‘all’ %}
{% capture discount_title %}
{% if discount_application.title %}
{{ discount_application.title | upcase }}
{% else %}
Discount
{% endif %}
{% endcapture %} {% endif %}
{% endfor %} {% if delivery_method == ‘pick-up’ %} {% else %} {% endif %} {% for tax_line in tax_lines %} {% endfor %}
|
{% if titleBold %}
Subtotal
{% else %}
Subtotal
{% endif %}
|
{% if valueBold %}
{{ subtotal_price | plus: discount_value | money }}
{% else %}
{{ subtotal_price | plus: discount_value | money }}
{% endif %}
|
|
{% if titleBold %}
Discount
{% else %}
Discount
{% endif %}
{% if discount_title.size > 0 %}({{ discount_title | strip }}){% endif %}
|
{% if valueBold %}
-{{ discount_application.total_allocated_amount | money }}
{% else %}
-{{ discount_application.total_allocated_amount | money }}
{% endif %}
|
|
{% if titleBold %}
Pickup
{% else %}
Pickup
{% endif %}
|
{% if valueBold %}
{{ shipping_price | money }}
{% else %}
{{ shipping_price | money }}
{% endif %}
|
|
{% if titleBold %}
Shipping
{% else %}
Shipping
{% endif %}
{% if shipping_method.title.size > 0 %}({{ shipping_method.title }}){% endif %}
|
{% if valueBold %}
{{ shipping_price | money }}
{% else %}
{{ shipping_price | money }}
{% endif %}
|
|
{% if titleBold %}
Tax
{% else %}
Tax
{% endif %}
{% if tax_line.title.size > 0 %}({{ tax_line.title }} {{ tax_line.rate | times: 100 }}%){% endif %}
|
{% if valueBold %}
{{ tax_line.price | money }}
{% else %}
{{ tax_line.price | money }}
{% endif %}
|
|
{% if titleBold %}
Total
{% else %}
Total
{% endif %}
|
{% if valueBold %}
{{ total_price | money_with_currency }}
{% else %}
{{ total_price | money_with_currency }}
{% endif %}
|
|
|
|
|
{% if gateway %}
Payment processing method
{{ gateway }}
|
{% endif %}
{% if requires_shipping and shipping_address %}
{% if shipping_methods.first %}
Delivery method
{% for shipping_method in shipping_methods %}
{{ shipping_method.title }}
{% endfor %}
|
{% endif %}
Order Information
{{ delivery_instructions }}
{{ note }}
{{ email }}
{{ shipping_address.phone }}
{{ shipping_address.name }}
{{ shipping_address.street }}
{{ shipping_address.city }},
{{ shipping_address.province }}
{{ shipping_address.zip }}
{{ delivery_address.phone }}
|
{% endif %}
|
|
|
|
|
|
© Shopify | 151 O'Connor Street, Ground floor, Ottawa, ON, K2P 2L8
|
![]()
|